Commit a76eee94 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Do not dereference a ptr we just checked being NULL.

parent aef6b479
......@@ -1387,7 +1387,6 @@ BOOL16 WINAPI EnableCommNotification16( INT16 cid, HWND16 hwnd,
TRACE("(%d, %x, %d, %d)\n", cid, hwnd, cbWriteNotify, cbOutQueue);
if ((ptr = GetDeviceStruct(cid)) == NULL) {
FIXME("no handle for cid = %0x!.\n",cid);
ptr->commerror = IE_BADID;
return -1;
}
ptr->wnd = hwnd;
......
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