summaryrefslogtreecommitdiff
path: root/src/windows/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows/system.c')
-rw-r--r--src/windows/system.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/windows/system.c b/src/windows/system.c
index ebce9e3..ca3ada7 100644
--- a/src/windows/system.c
+++ b/src/windows/system.c
@@ -718,7 +718,8 @@ void Sys_Init(void)
#ifndef _WIN64
module = GetModuleHandle("kernel32.dll");
if (module) {
- pSetProcessDEPPolicy = GetProcAddress(module, "SetProcessDEPPolicy");
+ pSetProcessDEPPolicy = (PVOID)GetProcAddress(module,
+ "SetProcessDEPPolicy");
if (pSetProcessDEPPolicy) {
var = Cvar_Get("sys_disabledep", "0", CVAR_NOSET);