[KERNEL32]: Fix GCC build.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 11 Jul 2015 00:29:01 +0000 (00:29 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 11 Jul 2015 00:29:01 +0000 (00:29 +0000)
svn path=/trunk/; revision=68387

reactos/dll/win32/kernel32/client/file/filename.c

index a13f453..6de409d 100644 (file)
@@ -86,10 +86,10 @@ GetTempFileNameW(IN LPCWSTR lpPathName,
                  IN UINT uUnique,
                  OUT LPWSTR lpTempFileName)
 {
-    CHAR * Let;
+    PUCHAR Let;
     HANDLE TempFile;
     UINT ID, Num = 0;
-    CHAR IDString[5];
+    UCHAR IDString[5];
     WCHAR * TempFileName;
     BASE_API_MESSAGE ApiMessage;
     PBASE_GET_TEMP_FILE GetTempFile = &ApiMessage.Data.GetTempFileRequest;
@@ -176,7 +176,7 @@ GetTempFileNameW(IN LPCWSTR lpPathName,
         }
  
         /* Convert that ID to wchar */
-        RtlIntegerToChar(ID, 0x10, sizeof(IDString), IDString);
+        RtlIntegerToChar(ID, 0x10, sizeof(IDString), (PCHAR)IDString);
         Let = IDString;
         do
         {