June 3, 2026
11:35 p.m.
Until now wine tried to write the cookie even if the cookie was located in a read-only section, causing some applications to crash. With this change the loader temporarily marks the memory section as read-write to update the cookie. The same fix was applied to the ntdll and ntoskrnl.exe loader, as they had pretty much the same set_security_cookie() function. A test to check for correctness with read-only cookies was also added. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51928 -- v9: kernel32: Add test for read-only cookie in loader ntoskrnl.exe: account for read-only cookies https://gitlab.winehq.org/wine/wine/-/merge_requests/11001