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

Alexandre Julliard julliard at winehq.org
Mon Aug 18 10:47:14 CDT 2008


Module: wine
Branch: master
Commit: b7e81d3e54b0d763a765a44d1937c111ffa1b3c6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b7e81d3e54b0d763a765a44d1937c111ffa1b3c6

Author: Jeff Latimer <lats at yless4u.com.au>
Date:   Tue Aug  5 22:19:17 2008 +1000

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

---

 dlls/user32/dde_client.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/user32/dde_client.c b/dlls/user32/dde_client.c
index 738d511..00b41c4 100644
--- a/dlls/user32/dde_client.c
+++ b/dlls/user32/dde_client.c
@@ -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);




More information about the wine-cvs mailing list