[ros-diffs] [cwittich] 27404: don't zero an OEM_STRING with sizeof(UNICODE_STRING)

cwittich at svn.reactos.org cwittich at svn.reactos.org
Thu Jul 5 13:10:09 CEST 2007


Author: cwittich
Date: Thu Jul  5 15:10:08 2007
New Revision: 27404

URL: http://svn.reactos.org/svn/reactos?rev=27404&view=rev
Log:
don't zero an OEM_STRING with sizeof(UNICODE_STRING)

Modified:
    trunk/reactos/lib/rtl/unicode.c

Modified: trunk/reactos/lib/rtl/unicode.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/unicode.c?rev=27404&r1=27403&r2=27404&view=diff
==============================================================================
--- trunk/reactos/lib/rtl/unicode.c (original)
+++ trunk/reactos/lib/rtl/unicode.c Thu Jul  5 15:10:08 2007
@@ -1417,7 +1417,7 @@
 
     if (!Length)
     {
-        RtlZeroMemory(OemDest, sizeof(UNICODE_STRING));
+        RtlZeroMemory(OemDest, sizeof(OEM_STRING));
     }
 
     if (Length > MAXUSHORT) return STATUS_INVALID_PARAMETER_2;
@@ -1619,7 +1619,7 @@
 
     if (!Length)
     {
-        RtlZeroMemory(OemDest, sizeof(UNICODE_STRING));
+        RtlZeroMemory(OemDest, sizeof(OEM_STRING));
     }
 
     if (Length > MAXUSHORT) return STATUS_INVALID_PARAMETER_2;




More information about the Ros-diffs mailing list