- There's no such thing as PRTL_MESSAGE_RESOURCE_ENTRY, use PMESSAGE_RESOURCE_ENTRY...
authorSir Richard <sir_richard@svn.reactos.org>
Sun, 27 Jun 2010 19:56:57 +0000 (19:56 +0000)
committerSir Richard <sir_richard@svn.reactos.org>
Sun, 27 Jun 2010 19:56:57 +0000 (19:56 +0000)
svn path=/trunk/; revision=47865

reactos/include/ndk/rtlfuncs.h
reactos/include/ndk/rtltypes.h
reactos/lib/rtl/message.c
reactos/ntoskrnl/ke/bug.c

index c5d4a84..39a9503 100644 (file)
@@ -2796,7 +2796,7 @@ RtlFindMessage(
     IN ULONG Type,
     IN ULONG Language,
     IN ULONG MessageId,
-    OUT PRTL_MESSAGE_RESOURCE_ENTRY *MessageResourceEntry
+    OUT PMESSAGE_RESOURCE_ENTRY *MessageResourceEntry
 );
 
 NTSYSAPI
index b98d3b3..04aa924 100644 (file)
@@ -1084,29 +1084,6 @@ typedef struct _RTL_RESOURCE
     PVOID DebugInfo;
 } RTL_RESOURCE, *PRTL_RESOURCE;
 
-//
-// RTL Message Structures for PE Resources
-//
-typedef struct _RTL_MESSAGE_RESOURCE_ENTRY
-{
-    USHORT Length;
-    USHORT Flags;
-    CHAR Text[1];
-} RTL_MESSAGE_RESOURCE_ENTRY, *PRTL_MESSAGE_RESOURCE_ENTRY;
-
-typedef struct _RTL_MESSAGE_RESOURCE_BLOCK
-{
-    ULONG LowId;
-    ULONG HighId;
-    ULONG OffsetToEntries;
-} RTL_MESSAGE_RESOURCE_BLOCK, *PRTL_MESSAGE_RESOURCE_BLOCK;
-
-typedef struct _RTL_MESSAGE_RESOURCE_DATA
-{
-    ULONG NumberOfBlocks;
-    RTL_MESSAGE_RESOURCE_BLOCK Blocks[1];
-} RTL_MESSAGE_RESOURCE_DATA, *PRTL_MESSAGE_RESOURCE_DATA;
-
 //
 // Structures for RtlCreateUserProcess
 //
index 065e260..998cca3 100644 (file)
@@ -24,14 +24,14 @@ RtlFindMessage(
     ULONG Type,
     ULONG Language,
     ULONG MessageId,
-    PRTL_MESSAGE_RESOURCE_ENTRY *MessageResourceEntry)
+    PMESSAGE_RESOURCE_ENTRY *MessageResourceEntry)
 {
     LDR_RESOURCE_INFO ResourceInfo;
     PIMAGE_RESOURCE_DATA_ENTRY ResourceDataEntry;
-    PRTL_MESSAGE_RESOURCE_DATA MessageTable;
+    PMESSAGE_RESOURCE_DATA MessageTable;
     NTSTATUS Status;
     ULONG EntryOffset = 0, IdOffset = 0;
-    PRTL_MESSAGE_RESOURCE_ENTRY MessageEntry;
+    PMESSAGE_RESOURCE_ENTRY MessageEntry;
     ULONG i;
 
     DPRINT("RtlFindMessage()\n");
@@ -92,7 +92,7 @@ RtlFindMessage(
         return STATUS_MESSAGE_NOT_FOUND;
     }
 
-    MessageEntry = (PRTL_MESSAGE_RESOURCE_ENTRY)
+    MessageEntry = (PMESSAGE_RESOURCE_ENTRY)
         ((PUCHAR)MessageTable + MessageTable->Blocks[i].OffsetToEntries);
 
     DPRINT("EntryOffset 0x%08lx\n", EntryOffset);
@@ -101,7 +101,7 @@ RtlFindMessage(
     DPRINT("MessageEntry: %p\n", MessageEntry);
     for (i = 0; i < IdOffset; i++)
     {
-        MessageEntry = (PRTL_MESSAGE_RESOURCE_ENTRY)
+        MessageEntry = (PMESSAGE_RESOURCE_ENTRY)
             ((PUCHAR)MessageEntry + (ULONG)MessageEntry->Length);
     }
 
index c40b133..d1ca5a2 100644 (file)
@@ -23,7 +23,7 @@ LIST_ENTRY KeBugcheckReasonCallbackListHead;
 KSPIN_LOCK BugCheckCallbackLock;
 ULONG KeBugCheckActive, KeBugCheckOwner;
 LONG KeBugCheckOwnerRecursionCount;
-PRTL_MESSAGE_RESOURCE_DATA KiBugCodeMessages;
+PMESSAGE_RESOURCE_DATA KiBugCodeMessages;
 ULONG KeBugCheckCount = 1;
 ULONG KiHardwareTrigger;
 PUNICODE_STRING KiBugCheckDriver;
@@ -394,7 +394,7 @@ INIT_FUNCTION
 NTAPI
 KiInitializeBugCheck(VOID)
 {
-    PRTL_MESSAGE_RESOURCE_DATA BugCheckData;
+    PMESSAGE_RESOURCE_DATA BugCheckData;
     LDR_RESOURCE_INFO ResourceInfo;
     PIMAGE_RESOURCE_DATA_ENTRY ResourceDataEntry;
     NTSTATUS Status;