shithub: choc

Download patch

ref: fe2d6dc91b41b96b79fc240dc9651b169a27fe29
parent: 2e510589dfb40140a375b6c18e419853c636b85d
author: Simon Howard <[email protected]>
date: Thu Dec 21 20:39:03 EST 2006

Shut up compiler warnings.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 793

--- a/src/d_iwad.c
+++ b/src/d_iwad.c
@@ -136,8 +136,8 @@
 static char *GetRegistryString(registry_value_t *reg_val)
 {
     HKEY key;
-    int len;
-    int valtype;
+    DWORD len;
+    DWORD valtype;
     char *result;
 
     // Open the key (directory where the value is stored)
@@ -167,7 +167,7 @@
 
     result = Z_Malloc(len, PU_STATIC, 0);
 
-    if (RegQueryValueEx(key, reg_val->value, NULL, &valtype, result, &len) 
+    if (RegQueryValueEx(key, reg_val->value, NULL, &valtype, (unsigned char *) result, &len) 
           != ERROR_SUCCESS)
     {
         Z_Free(result);