summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2006-12-22 01:39:03 +0000
committerSimon Howard2006-12-22 01:39:03 +0000
commitfe2d6dc91b41b96b79fc240dc9651b169a27fe29 (patch)
tree75f59ad1aa2b74e932b2875e5251f49c490d5731
parent2e510589dfb40140a375b6c18e419853c636b85d (diff)
downloadchocolate-doom-fe2d6dc91b41b96b79fc240dc9651b169a27fe29.tar.gz
chocolate-doom-fe2d6dc91b41b96b79fc240dc9651b169a27fe29.tar.bz2
chocolate-doom-fe2d6dc91b41b96b79fc240dc9651b169a27fe29.zip
Shut up compiler warnings.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 793
-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);