Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix reversed DDE ack
Browse files Browse the repository at this point in the history
Krzysztof Kowalczyk committed Dec 28, 2023
1 parent 2cc0b45 commit dd6df92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SearchAndDDE.cpp
Original file line number Diff line number Diff line change
@@ -1119,7 +1119,7 @@ LRESULT OnDDExecute(HWND hwnd, WPARAM wp, LPARAM lp) {
TempStr cmd = HGLOBALToStrTemp((HGLOBAL)hCommand, isUnicode);
bool didHandle = HandleExecuteCmds(hwnd, cmd);
DDEACK ack{};
ack.fAck = didHandle ? 0 : 1;
ack.fAck = didHandle ? 1 : 0;
LPARAM lpres = PackDDElParam(WM_DDE_ACK, *(WORD*)&ack, (UINT_PTR)hCommand);
PostMessageW(hwndClient, WM_DDE_ACK, (WPARAM)hwnd, lpres);
return 0;

0 comments on commit dd6df92

Please sign in to comment.