foxygit / doom Log in
commit fe2d6dc91b41b96b79fc240dc9651b169a27fe29
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Fri Dec 22 01:39:03 2006 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Fri Dec 22 01:39:03 2006 +0000

    Shut up compiler warnings.

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 793
---
 src/d_iwad.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/d_iwad.c b/src/d_iwad.c
index 1a00f189..6e4d29f8 100644
--- a/src/d_iwad.c
+++ b/src/d_iwad.c
@@ -136,8 +136,8 @@ static char *collectors_edition_subdirs[] =
 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 @@ static char *GetRegistryString(registry_value_t *reg_val)

     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);