ntdll: Fix ProcessExecuteFlag logic.

This commit is contained in:
Michael Karcher 2009-07-26 19:58:46 +02:00 committed by Alexandre Julliard
parent 89d4402cc5
commit 137799cbfc

View File

@ -416,10 +416,10 @@ NTSTATUS WINAPI NtSetInformationProcess(
switch (*(ULONG *)ProcessInformation & (MEM_EXECUTE_OPTION_ENABLE|MEM_EXECUTE_OPTION_DISABLE)) switch (*(ULONG *)ProcessInformation & (MEM_EXECUTE_OPTION_ENABLE|MEM_EXECUTE_OPTION_DISABLE))
{ {
case MEM_EXECUTE_OPTION_ENABLE: case MEM_EXECUTE_OPTION_ENABLE:
enable = FALSE; enable = TRUE;
break; break;
case MEM_EXECUTE_OPTION_DISABLE: case MEM_EXECUTE_OPTION_DISABLE:
enable = TRUE; enable = FALSE;
break; break;
default: default:
return STATUS_INVALID_PARAMETER; return STATUS_INVALID_PARAMETER;