diff --git a/files/dos_fs.c b/files/dos_fs.c index a9658370ce..12bb4cb6f6 100644 --- a/files/dos_fs.c +++ b/files/dos_fs.c @@ -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);