summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/d_iwad.c6
1 files 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);