Commit 2a5c1460 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

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

parent 2fc867c0
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment