Skip to content

Commit

Permalink
fix reversed DDE ack
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Kowalczyk committed Dec 28, 2023
1 parent 7cfae41 commit 4a53f27
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
Expand Up @@ -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;
Expand Down

0 comments on commit 4a53f27

Please sign in to comment.