dde_connect(): set error code ERROR_DDE_FAIL when encountering DDE connection problems

svn path=/trunk/; revision=7862
This commit is contained in:
Martin Fuchs 2004-01-24 12:20:17 +00:00
parent de5a724bca
commit 7fd96c83a7

View file

@ -785,8 +785,9 @@ static unsigned dde_connect(WCHAR * key, WCHAR* start, WCHAR* ddeexec,
if (!hConv) if (!hConv)
{ {
TRACE("Couldn't connect. ret=%d\n", ret); TRACE("Couldn't connect. ret=%d\n", ret);
ret = 30; /* whatever */ DdeUninitialize(ddeInst);
goto error; SetLastError(ERROR_DDE_FAIL);
return ret = 30; /* whatever */
} }
strcpyW(endkey, wIfexec); strcpyW(endkey, wIfexec);
ifexeclen = sizeof(ifexec); ifexeclen = sizeof(ifexec);