user32: Fixed NULL ptr checks (Coverity).

This commit is contained in:
Marcus Meissner 2009-11-23 22:14:44 +01:00 committed by Alexandre Julliard
parent 9718e04775
commit 1667a2469e
1 changed files with 7 additions and 1 deletions

View File

@ -1983,7 +1983,13 @@ WDML_CONV* WDML_GetConv(HCONV hConv, BOOL checkConnected)
/* FIXME: should do better checking */
if (pConv == NULL || pConv->magic != WDML_CONV_MAGIC) return NULL;
if (!pConv->instance || pConv->instance->threadID != GetCurrentThreadId())
if (!pConv->instance)
{
WARN("wrong thread ID, no instance\n");
return NULL;
}
if (pConv->instance->threadID != GetCurrentThreadId())
{
WARN("wrong thread ID\n");
pConv->instance->lastError = DMLERR_INVALIDPARAMETER; /* FIXME: check */