Commit 1cb5e7b
authored
Fix invalid call to VirtualProtect (#27)
* Fix invalid call to VirtualProtect
VirtualProtect fails if fourth argument is NULL, see: https://learn.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualprotect
On some versions of wine this leads to null pointer dereference and crash.
* Call FlushInstructionCache after patching1 parent a39f2e2 commit 1cb5e7b
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
0 commit comments