Do not dereference a ptr we just checked being NULL.

This commit is contained in:
Marcus Meissner 2000-04-14 14:07:13 +00:00 committed by Alexandre Julliard
parent aef6b47917
commit a76eee94f0
1 changed files with 0 additions and 1 deletions

View File

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