Alexandre Julliard (@julliard) commented about dlls/ntdll/tests/virtual.c:
+ + if (!status) + { + size = 0; + ret = NtFreeVirtualMemory( NtCurrentProcess(), &addr, &size, MEM_RELEASE ); + ok( !ret, "NtFreeVirtualMemory returned %08lx\n", ret ); + } + return status; +} + +/* MEM_LARGE_PAGES and MEM_PHYSICAL are absent from the type masks that + * NtAllocateVirtualMemory[Ex] validate against, so Wine refuses any allocation + * carrying either bit with STATUS_INVALID_PARAMETER. Windows tells the cases + * apart: an AWE reservation succeeds, a large page request without + * SeLockMemoryPrivilege fails on the privilege, and the two combined succeed. + */ It's not useful to describe Wine's implementation here, particularly since that's what you are trying to fix. Was this LLM-generated by any chance?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/11600#note_149153