info->u.smb_dir is a pointer, errors are signaled by NULL.

This commit is contained in:
Marcus Meissner 2002-09-16 19:27:15 +00:00 committed by Alexandre Julliard
parent 2fc867c045
commit 2a5c146067
1 changed files with 1 additions and 1 deletions

View File

@ -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);