VirtualProtect bug fix for Windows 11 24H2

Download command line C++ loader

Download Windows Forms loader (with user interface)

So far in Windows 11 24H2 there is a bug in function VirtualProtect of kernelbase.dll, that results not often in stack corruption and program crash, that uses this function.

Such problems also exist in Ubisoft games (Far Cry 5, NewDawn and else).

This program fix it.

It loads your program, that works wrong, and before its execution it changes VirtualProtect so, that it will work correctly.

Because this program uses functions to write data to remote process (of your program) some antiviruses can start false alarm about it. But this program does not have viruses and its code is not encrypted.

Run examplefor command line tool: virtualprotectfix "c:\games\game.exe" "c:\games"

First argument - full path to your exe file, and second argument is a full path to program folder.

Fix will be written only into created process. So whole else windows and all else your programs will still have bug...

Also you can run: virtualprotect check. Program will compare function starting bytes and tell you if you have a buggy function or maybe it's already fixed by Microsoft. Fo far (26.02.2025) it is not fixed.

I'v submitted this bug to Microsoft, but they are not in a hurry to fix it. If you wish to try to hurry them up you can vote for it at Microsoft.