user32: Check for invalid conversation and return the correct error.

This commit is contained in:
Jeff Latimer 2008-08-05 22:19:17 +10:00 committed by Alexandre Julliard
parent 544c1e5cd1
commit b7e81d3e54
1 changed files with 1 additions and 0 deletions

View File

@ -191,6 +191,7 @@ HCONV WINAPI DdeConnect(DWORD idInst, HSZ hszService, HSZ hszTopic,
{ {
WARN("Done with INITIATE, but no Server window available\n"); WARN("Done with INITIATE, but no Server window available\n");
pConv = NULL; pConv = NULL;
pInstance->lastError = DMLERR_NO_CONV_ESTABLISHED;
goto theEnd; goto theEnd;
} }
TRACE("Connected to Server window (%p)\n", pConv->hwndServer); TRACE("Connected to Server window (%p)\n", pConv->hwndServer);