Commit 18004567 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

DdeClientTransaction returns zero on error.

parent 476ac454
......@@ -801,7 +801,7 @@ static unsigned dde_connect(WCHAR* key, WCHAR* start, WCHAR* ddeexec,
TRACE("%s %s => %s\n", debugstr_w(exec), debugstr_w(lpFile), debugstr_w(res));
ret = (DdeClientTransaction((LPBYTE)res, (strlenW(res) + 1) * sizeof(WCHAR), hConv, 0L, 0,
XTYP_EXECUTE, 10000, &tid) != DMLERR_NO_ERROR) ? 31 : 33;
XTYP_EXECUTE, 10000, &tid) == 0) ? 31 : 33;
DdeDisconnect(hConv);
error:
......
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