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)
{
TRACE("Couldn't connect. ret=%d\n", ret);
ret = 30; /* whatever */
goto error;
DdeUninitialize(ddeInst);
SetLastError(ERROR_DDE_FAIL);
return ret = 30; /* whatever */
}
strcpyW(endkey, wIfexec);
ifexeclen = sizeof(ifexec);