[ros-diffs] [ion] 54310: [KERNEL32]: The ANSI/OEM stubs were never initialized... it's a miracle this ever worked, probably because someone added a #define to at least one of them to hack it into working. Init...

ion at svn.reactos.org ion at svn.reactos.org
Sun Nov 6 04:13:21 UTC 2011


Author: ion
Date: Sun Nov  6 04:13:21 2011
New Revision: 54310

URL: http://svn.reactos.org/svn/reactos?rev=54310&view=rev
Log:
[KERNEL32]: The ANSI/OEM stubs were never initialized... it's a miracle this ever worked, probably because someone added a #define to at least one of them to hack it into working. Initialize the value snow, fixes boot.

Modified:
    trunk/reactos/dll/win32/kernel32/client/file/file.c
    trunk/reactos/dll/win32/kernel32/client/utils.c
    trunk/reactos/dll/win32/kernel32/include/kernel32.h

Modified: trunk/reactos/dll/win32/kernel32/client/file/file.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/file/file.c?rev=54310&r1=54309&r2=54310&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/file.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/file.c [iso-8859-1] Sun Nov  6 04:13:21 2011
@@ -20,6 +20,10 @@
 /* GLOBALS ******************************************************************/
 
 BOOL bIsFileApiAnsi = TRUE; // set the file api to ansi or oem
+PRTL_CONVERT_STRING Basep8BitStringToUnicodeString = RtlAnsiStringToUnicodeString;
+PRTL_CONVERT_STRINGA BasepUnicodeStringTo8BitString = RtlUnicodeStringToAnsiString;
+PRTL_COUNT_STRING BasepUnicodeStringTo8BitSize = BasepUnicodeStringToAnsiSize;
+PRTL_COUNT_STRINGA Basep8BitStringToUnicodeSize = BasepAnsiStringToUnicodeSize;
 
 /* FUNCTIONS ****************************************************************/
 

Modified: trunk/reactos/dll/win32/kernel32/client/utils.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/utils.c?rev=54310&r1=54309&r2=54310&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/utils.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/utils.c [iso-8859-1] Sun Nov  6 04:13:21 2011
@@ -20,11 +20,6 @@
 #include <debug.h>
 
 /* GLOBALS ********************************************************************/
-
-PRTL_CONVERT_STRING Basep8BitStringToUnicodeString;
-PRTL_CONVERT_STRINGA BasepUnicodeStringTo8BitString;
-PRTL_COUNT_STRING BasepUnicodeStringTo8BitSize;
-PRTL_COUNT_STRINGA Basep8BitStringToUnicodeSize;
 
 UNICODE_STRING Restricted = RTL_CONSTANT_STRING(L"Restricted");
 

Modified: trunk/reactos/dll/win32/kernel32/include/kernel32.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/include/kernel32.h?rev=54310&r1=54309&r2=54310&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/include/kernel32.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/include/kernel32.h [iso-8859-1] Sun Nov  6 04:13:21 2011
@@ -245,6 +245,13 @@
 
 typedef ULONG (NTAPI *PRTL_COUNT_STRINGA)(IN PANSI_STRING UnicodeString);
 
+ULONG
+NTAPI
+BasepUnicodeStringToAnsiSize(IN PUNICODE_STRING String);
+
+ULONG
+NTAPI
+BasepAnsiStringToUnicodeSize(IN PANSI_STRING String);
 
 extern PRTL_CONVERT_STRING Basep8BitStringToUnicodeString;
 extern PRTL_CONVERT_STRINGA BasepUnicodeStringTo8BitString;




More information about the Ros-diffs mailing list