6 Nov
2025
6 Nov
'25
9:19 a.m.
eric pouech (@epo) commented about dlls/kernel32/toolhelp.c:
LDR_DATA_TABLE_ENTRY *mod = NULL; ULONG num_pcs, num_thd, num_mod; HANDLE hSnapShot = 0; + DWORD supported_flags = TH32CS_SNAPPROCESS|TH32CS_SNAPTHREAD|TH32CS_SNAPMODULE;
TRACE("%lx,%lx\n", flags, process ); - if (!(flags & (TH32CS_SNAPPROCESS|TH32CS_SNAPTHREAD|TH32CS_SNAPMODULE)))
I'm not sure we want that... if an app requests say module+heaps, before we were returning success + modules (and zero heaps), with this change the call will fail perhaps we'd better just add a WARNa about unsupported flags -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9371#note_121003