mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
dde_connect(): set error code ERROR_DDE_FAIL when encountering DDE connection problems
svn path=/trunk/; revision=7862
This commit is contained in:
parent
de5a724bca
commit
7fd96c83a7
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue