Sebastian Lackner : ntdll: Do not omit mandatory argument for VirtualProtect.
Module: wine Branch: master Commit: 64ee8a4a53ef2ad542fc981eae35a98a2e30cd03 URL: http://source.winehq.org/git/wine.git/?a=commit;h=64ee8a4a53ef2ad542fc981eae... Author: Sebastian Lackner <sebastian(a)fds-team.de> Date: Sat May 2 18:43:24 2015 +0200 ntdll: Do not omit mandatory argument for VirtualProtect. --- dlls/ntdll/loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c index 9810f07..921bf57 100644 --- a/dlls/ntdll/loader.c +++ b/dlls/ntdll/loader.c @@ -685,7 +685,7 @@ static WINE_MODREF *import_dll( HMODULE module, const IMAGE_IMPORT_DESCRIPTOR *d done: /* restore old protection of the import address table */ - NtProtectVirtualMemory( NtCurrentProcess(), &protect_base, &protect_size, protect_old, NULL ); + NtProtectVirtualMemory( NtCurrentProcess(), &protect_base, &protect_size, protect_old, &protect_old ); return wmImp; }
participants (1)
-
Alexandre Julliard