cvg, parse.c: fixed a format warning from mingw.

This commit is contained in:
sezero
2018-08-10 20:37:17 +03:00
parent b594bf89aa
commit 57230a2161
2 changed files with 4 additions and 2 deletions

View File

@@ -979,6 +979,7 @@ static void sst1InitToLower(char *string)
}
#if __WIN32__
static
FxBool GetRegistryKey(HKEY hKey, const char* keyName,
char* regValBuf, FxU32 bufSize)
{
@@ -992,7 +993,7 @@ FxBool GetRegistryKey(HKEY hKey, const char* keyName,
case REG_DWORD:
{
DWORD dValue = *(DWORD*)regValBuf;
sprintf(regValBuf, "%d", dValue);
sprintf(regValBuf, "%lu", dValue);
}
/* Fall through */

View File

@@ -1024,6 +1024,7 @@ static void sst1InitToLower(char *string)
}
#if __WIN32__
static
FxBool GetRegistryKey(HKEY hKey, const char* keyName,
char* regValBuf, FxU32 bufSize)
{
@@ -1037,7 +1038,7 @@ FxBool GetRegistryKey(HKEY hKey, const char* keyName,
case REG_DWORD:
{
DWORD dValue = *(DWORD*)regValBuf;
sprintf(regValBuf, "%d", dValue);
sprintf(regValBuf, "%lu", dValue);
}
/* Fall through */