mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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)
|
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 ret = 30; /* whatever */
|
||||||
}
|
}
|
||||||
strcpyW(endkey, wIfexec);
|
strcpyW(endkey, wIfexec);
|
||||||
ifexeclen = sizeof(ifexec);
|
ifexeclen = sizeof(ifexec);
|
||||||
|
|
Loading…
Reference in a new issue