28 Jul
2020
28 Jul
'20
1:06 p.m.
On 28/07/2020 13:32, Stefan Dösinger wrote:
Am 27.07.2020 um 20:53 schrieb Gabriel Ivăncescu <gabrielopcode(a)gmail.com <mailto:gabrielopcode(a)gmail.com>>:
+ if (GetForegroundWindow() != window) return DDERR_WRONGMODE;
For the purpose of my understanding: is window != NULL here when Railroad Tycoon 2 hits this codepath?
When it hits this codepath, window == dest_window, since it never sets focuswindow (so it's NULL). It's not NULL, though, it's the game's window. dest_window can't be NULL, right?