Protect WDML_GetConv against null handles.

This commit is contained in:
Mike Hearn 2003-06-07 00:33:53 +00:00 committed by Alexandre Julliard
parent 6b9c474d30
commit 26fa3496e0
1 changed files with 1 additions and 0 deletions

View File

@ -1902,6 +1902,7 @@ WDML_CONV* WDML_GetConv(HCONV hConv, BOOL checkConnected)
WDML_CONV* pConv = (WDML_CONV*)hConv;
/* FIXME: should do better checking */
if (pConv == NULL) return NULL;
if (checkConnected && !(pConv->wStatus & ST_CONNECTED))
{