mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
user32: Fixed NULL ptr checks (Coverity).
This commit is contained in:
parent
9718e04775
commit
1667a2469e
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user