Aug. 24, 2026
10:29 a.m.
Jinoh Kang (@iamahuman) commented about dlls/krnl386.exe16/resource.c:
if (pNameInfo->handle == handle) { if (pNameInfo->usage > 0) pNameInfo->usage--; - if (pNameInfo->usage == 0) + if (pNameInfo->usage == 0 && !(pNameInfo->flags & NE_SEGFLAGS_DISCARDABLE))
https://devblogs.microsoft.com/oldnewthing/20040202-00/?p=40783 says you're supposed to mark the segment discardable, not ignore the request entirely.
16-bit programs can't run out of memory on modern hardware
Are you sure? That 16-bit programs can utilize all memory of modern hardware? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11742#note_149668