info->u.smb_dir is a pointer, errors are signaled by NULL.
This commit is contained in:
parent
2fc867c045
commit
2a5c146067
|
@ -1926,7 +1926,7 @@ HANDLE WINAPI FindFirstFileExW(
|
|||
|
||||
info = (FIND_FIRST_INFO *)GlobalLock( handle );
|
||||
info->u.smb_dir = SMB_FindFirst(lpFileName);
|
||||
if(info->u.smb_dir < 0)
|
||||
if(!info->u.smb_dir)
|
||||
{
|
||||
GlobalUnlock( handle );
|
||||
GlobalFree(handle);
|
||||
|
|
Loading…
Reference in New Issue