mirror of https://github.com/BOINC/boinc.git
client: fix botched commit from just now
This commit is contained in:
parent
9ea0bb3585
commit
579597be93
|
@ -178,7 +178,8 @@ int dir_scan(char* p, DIRREF dirp, int p_len) {
|
||||||
if (p) strlcpy(p, data.cFileName, p_len);
|
if (p) strlcpy(p, data.cFileName, p_len);
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
DWORD ret = FindClose(dirp->handle);
|
DWORD ret = GetLastError();
|
||||||
|
FindClose(dirp->handle);
|
||||||
dirp->handle = INVALID_HANDLE_VALUE;
|
dirp->handle = INVALID_HANDLE_VALUE;
|
||||||
if (ret == ERROR_NO_MORE_FILES) {
|
if (ret == ERROR_NO_MORE_FILES) {
|
||||||
return ERR_NOT_FOUND;
|
return ERR_NOT_FOUND;
|
||||||
|
|
Loading…
Reference in New Issue