Commit 1667a246 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

user32: Fixed NULL ptr checks (Coverity).

parent 9718e047
......@@ -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 */
......
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