diff options
author | Simon Howard | 2006-12-22 01:39:03 +0000 |
---|---|---|
committer | Simon Howard | 2006-12-22 01:39:03 +0000 |
commit | fe2d6dc91b41b96b79fc240dc9651b169a27fe29 (patch) | |
tree | 75f59ad1aa2b74e932b2875e5251f49c490d5731 /src/d_iwad.c | |
parent | 2e510589dfb40140a375b6c18e419853c636b85d (diff) | |
download | chocolate-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
Diffstat (limited to 'src/d_iwad.c')
-rw-r--r-- | src/d_iwad.c | 6 |
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); |