What does this code mean?

Henri Verbeet hverbeet at gmail.com
Fri Jun 12 04:11:47 CDT 2009


2009/6/12 LiuYuanxi <marsliu2000 at hotmail.com>:
> In dlls/ntdll/file.c: line 362
>
> if ((status = server_get_unix_fd( fileio->io.handle, FILE_READ_DATA, &fd,
>                                           &needs_close, NULL, NULL )))
>           break;
>
> Is this if always true?
>
No, only if server_get_unix_fd() returns a non-zero status. I.e., the
code is equivalent to:

status = server_get_unix_fd( fileio->io.handle, FILE_READ_DATA, &fd,
&needs_close, NULL, NULL );
if (status) break;



More information about the wine-devel mailing list