Set error code ERROR_DDE_FAIL if the DDE connection failed in

ShellExecute().
This commit is contained in:
Martin Fuchs 2004-03-01 21:22:25 +00:00 committed by Alexandre Julliard
parent 2faaf2265d
commit 46fceb19f3
1 changed files with 3 additions and 2 deletions

View File

@ -540,8 +540,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 30; /* whatever */
}
strcpyW(endkey, wIfexec);
ifexeclen = sizeof(ifexec)/sizeof(WCHAR);