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

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");
pConv = NULL;
pInstance->lastError = DMLERR_NO_CONV_ESTABLISHED;
goto theEnd;
}
TRACE("Connected to Server window (%p)\n", pConv->hwndServer);