winemac.drv: Compare handle to INVALID_HANDLE_VALUE, not NULL.
Signed-off-by: Lauri Kenttä <lauri.kentta@gmail.com> Signed-off-by: Ken Thomases <ken@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5ee3f54438
commit
f447b644a5
|
@ -1934,7 +1934,7 @@ void CDECL macdrv_UpdateClipboard(void)
|
|||
if (!(pipe_name = get_pipe_name())) return;
|
||||
pipe = CreateFileW(pipe_name, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, NULL,
|
||||
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, NULL);
|
||||
if (!pipe)
|
||||
if (pipe == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
WARN("failed to open pipe to clipboard manager: %d\n", GetLastError());
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue