Skip to content

Commit 56c8f4b

Browse files
committed
Remove Proton Hack
1 parent e9fe547 commit 56c8f4b

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

dlls/ntdll/unix/virtual.c

-17
Original file line numberDiff line numberDiff line change
@@ -4145,23 +4145,6 @@ NTSTATUS WINAPI NtProtectVirtualMemory( HANDLE process, PVOID *addr_ptr, SIZE_T
41454145
vprot |= VPROT_COPIED;
41464146
old = get_win32_prot( vprot, view->protect );
41474147
}
4148-
else if (status == STATUS_SUCCESS && (view->protect & SEC_IMAGE) &&
4149-
base == (void*)NtCurrentTeb()->Peb->ImageBaseAddress)
4150-
{
4151-
/* GTA5 HACK: Mark first page as copied. */
4152-
const WCHAR gta5W[] = { 'g','t','a','5','.','e','x','e',0 };
4153-
WCHAR *name, *p;
4154-
4155-
name = NtCurrentTeb()->Peb->ProcessParameters->ImagePathName.Buffer;
4156-
p = wcsrchr(name, '\\');
4157-
p = p ? p+1 : name;
4158-
4159-
if(!wcsicmp(p, gta5W))
4160-
{
4161-
FIXME("HACK: changing GTA5.exe vprot\n");
4162-
set_page_vprot_bits(base, page_size, VPROT_COPIED, 0);
4163-
}
4164-
}
41654148
}
41664149
else status = STATUS_NOT_COMMITTED;
41674150
}

0 commit comments

Comments
 (0)