Set error code ERROR_DDE_FAIL if the DDE connection failed in
ShellExecute().
This commit is contained in:
parent
2faaf2265d
commit
46fceb19f3
|
@ -540,8 +540,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 30; /* whatever */
|
||||||
}
|
}
|
||||||
strcpyW(endkey, wIfexec);
|
strcpyW(endkey, wIfexec);
|
||||||
ifexeclen = sizeof(ifexec)/sizeof(WCHAR);
|
ifexeclen = sizeof(ifexec)/sizeof(WCHAR);
|
||||||
|
|
Loading…
Reference in New Issue