Commit 46fceb19 authored by Martin Fuchs's avatar Martin Fuchs Committed by Alexandre Julliard

Set error code ERROR_DDE_FAIL if the DDE connection failed in

ShellExecute().
parent 2faaf226
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment