-
5529c199
by Yuxuan Shui at 2026-01-28T22:00:01+01:00
kernel32/tests: Fix CreateToolhelp32Snapshot failure check.
CreateToolhelp32Snapshot returns INVALID_HANDLE_VALUE in case of failure, not NULL.
-
360004c8
by Yuxuan Shui at 2026-01-28T22:00:01+01:00
kernel32/tests: Handle ERROR_BAD_LENGTH from CreateToolhelp32Snapshot.
According to Microsoft's documentation on CreateToolhelp32Snapshot:
> If the function fails with ERROR_BAD_LENGTH, retry the function until it succeeds.
-
5d2f24fc
by Yuxuan Shui at 2026-01-28T22:00:01+01:00
include: Add TH32CS_SNAPMODULE32.
-
83853da5
by Yuxuan Shui at 2026-01-28T22:00:01+01:00
kernel32: Fix CreateToolhelp32Snapshot on old WoW64.
On old WoW64 PEB->LdrData is NULL, so later ReadProcessMemory(&NULL->InLoadOrderModuleList.Flink)
fails. Don't return failure in this case.
-
3355646c
by Yuxuan Shui at 2026-01-28T22:00:01+01:00
kernel32/tests: Test CreateToolhelp32Snapshot with TH32CS_SNAPMODULE32.
-
e537be15
by Yuxuan Shui at 2026-01-28T22:00:01+01:00
kernel32: Implement TH32CS_SNAPMODULE32 support for CreateToolhelp32Snapshot.