Sync to trunk (r44371)
[reactos.git] / reactos / dll / win32 / kernel32 / misc / errormsg.c
index 96c4441..966d887 100644 (file)
@@ -87,7 +87,7 @@ static LPWSTR load_messageW( HMODULE module, UINT id, WORD lang )
     TRACE("module = %p, id = %08x\n", module, id );
 
     if (!module) module = GetModuleHandleW( NULL );
-    Status = RtlFindMessage( module, (ULONG) RT_MESSAGETABLE, lang, id, &mre );
+    Status = RtlFindMessage( module, (ULONG_PTR) RT_MESSAGETABLE, lang, id, &mre );
     if (!NT_SUCCESS(Status))
     {
         SetLastError( RtlNtStatusToDosError(Status) );
@@ -124,7 +124,7 @@ static LPSTR load_messageA( HMODULE module, UINT id, WORD lang )
     TRACE("module = %p, id = %08x\n", module, id );
 
     if (!module) module = GetModuleHandleW( NULL );
-    Status = RtlFindMessage( module, (ULONG) RT_MESSAGETABLE, lang, id, &mre );
+    Status = RtlFindMessage( module, (ULONG_PTR) RT_MESSAGETABLE, lang, id, &mre );
     if (!NT_SUCCESS(Status))
     {
         SetLastError( RtlNtStatusToDosError(Status) );