Zebediah Figura (@zfigura) commented about dlls/dbghelp/tests/dbghelp.c:
> + {
> + hMap = CreateFileMappingW(hFile, NULL, PAGE_READONLY, 0, 0, NULL);
> + if (hMap != NULL)
> + {
> + mapping = MapViewOfFile(hMap, FILE_MAP_READ, 0, 0, 0);
> + if (mapping != NULL)
> + {
> + nthdr = RtlImageNtHeader(mapping);
> + if (nthdr != NULL) machine = nthdr->FileHeader.Machine;
> + UnmapViewOfFile(mapping);
> + }
> + CloseHandle(hMap);
> + }
> + CloseHandle(hFile);
> + }
> return machine;
Why do this? This part doesn't fail.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/2152#note_23766