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:
Lauri Kenttä 2016-12-05 19:32:24 +02:00 committed by Alexandre Julliard
parent 5ee3f54438
commit f447b644a5
1 changed files with 1 additions and 1 deletions

View File

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