DdeClientTransaction returns zero on error.

This commit is contained in:
Huw Davies 2004-04-22 23:46:35 +00:00 committed by Alexandre Julliard
parent 476ac454ee
commit 180045676b
1 changed files with 1 additions and 1 deletions

View File

@ -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: