Author: fireball
Date: Sat Sep 22 00:15:46 2007
New Revision: 29133
URL:
http://svn.reactos.org/svn/reactos?rev=29133&view=rev
Log:
- Print out hardware information to the debug log in case of a crash (yes, even people
like me do mistakes...)
Modified:
trunk/reactos/ntoskrnl/config/i386/cmhardwr.c
Modified: trunk/reactos/ntoskrnl/config/i386/cmhardwr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/i386/cmhar…
==============================================================================
--- trunk/reactos/ntoskrnl/config/i386/cmhardwr.c (original)
+++ trunk/reactos/ntoskrnl/config/i386/cmhardwr.c Sat Sep 22 00:15:46 2007
@@ -248,7 +248,9 @@
LARGE_INTEGER ViewBase = {{0}};
ULONG_PTR VideoRomBase;
PCHAR CurrentVersion;
-
+ extern UNICODE_STRING KeRosProcessorName, KeRosBiosDate, KeRosBiosVersion;
+ extern UNICODE_STRING KeRosVideoBiosDate, KeRosVideoBiosVersion;
+
/* Open the SMSS Memory Management key */
RtlInitUnicodeString(&KeyName,
L"\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\"
@@ -471,6 +473,9 @@
Data.Buffer,
Data.Length + sizeof(UNICODE_NULL));
+ /* ROS: Save a copy for bugzilla reporting */
+ RtlCreateUnicodeString(&KeRosProcessorName, Data.Buffer);
+
/* Free the temporary buffer */
RtlFreeUnicodeString(&Data);
}
@@ -490,7 +495,7 @@
REG_SZ,
Data.Buffer,
Data.Length + sizeof(UNICODE_NULL));
-
+
/* Free the temporary buffer */
RtlFreeUnicodeString(&Data);
}
@@ -647,6 +652,9 @@
REG_SZ,
Data.Buffer,
Data.Length + sizeof(UNICODE_NULL));
+
+ /* ROS: Save a copy for bugzilla reporting */
+ RtlCreateUnicodeString(&KeRosBiosDate, Data.Buffer);
/* Free the string */
RtlFreeUnicodeString(&Data);
@@ -704,6 +712,9 @@
REG_MULTI_SZ,
BiosVersion,
TotalLength);
+
+ /* ROS: Save a copy for bugzilla reporting */
+ RtlCreateUnicodeString(&KeRosBiosVersion, (PWCH)BiosVersion);
}
}
@@ -745,6 +756,9 @@
REG_SZ,
Data.Buffer,
Data.Length + sizeof(UNICODE_NULL));
+
+ /* ROS: Save a copy for bugzilla reporting */
+ RtlCreateUnicodeString(&KeRosVideoBiosDate, Data.Buffer);
/* Free the string */
RtlFreeUnicodeString(&Data);
@@ -797,6 +811,9 @@
REG_MULTI_SZ,
BiosVersion,
TotalLength);
+
+ /* ROS: Save a copy for bugzilla reporting */
+ RtlCreateUnicodeString(&KeRosVideoBiosVersion, (PWCH)BiosVersion);
}
}