Author: hbelusca
Date: Thu May 26 23:16:10 2016
New Revision: 71420

URL: http://svn.reactos.org/svn/reactos?rev=71420&view=rev
Log:
[WIN32K]: it can be useful to have a TAG_USTR for unicode strings.

Modified:
    trunk/reactos/win32ss/gdi/ntgdi/font.c
    trunk/reactos/win32ss/user/ntuser/tags.h

Modified: trunk/reactos/win32ss/gdi/ntgdi/font.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/font.c?rev=71420&r1=71419&r2=71420&view=diff
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/font.c      [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/font.c      [iso-8859-1] Thu May 26 
23:16:10 2016
@@ -900,7 +900,7 @@
     SafeFileNames.MaximumLength = SafeFileNames.Length = (USHORT)cbStringSize 
- sizeof(WCHAR);
     SafeFileNames.Buffer = ExAllocatePoolWithTag(PagedPool,
                                                  cbStringSize,
-                                                 'RTSU');
+                                                 TAG_USTR);
     if (!SafeFileNames.Buffer)
     {
         EngSetLastError(ERROR_NOT_ENOUGH_MEMORY);
@@ -926,7 +926,7 @@
     {
         SetLastNtError(Status);
         /* Free the string buffer for the safe filename */
-        ExFreePoolWithTag(SafeFileNames.Buffer,'RTSU');
+        ExFreePoolWithTag(SafeFileNames.Buffer, TAG_USTR);
         return FALSE;
     }
 
@@ -957,7 +957,7 @@
     }
 
     /* Free the string for the safe filenames */
-    ExFreePoolWithTag(SafeFileNames.Buffer,'RTSU');
+    ExFreePoolWithTag(SafeFileNames.Buffer, TAG_USTR);
 
     return bRet;
 }

Modified: trunk/reactos/win32ss/user/ntuser/tags.h
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/tags.h?rev=71420&r1=71419&r2=71420&view=diff
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/tags.h    [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/tags.h    [iso-8859-1] Thu May 26 
23:16:10 2016
@@ -1,6 +1,7 @@
 #pragma once
 
 #define TAG_STRING         ' RTS' /* String */
+#define TAG_USTR           'RTSU' /* Unicode String */
 #define TAG_HOOK           'ohsU' /* Hook */
 #define TAG_MENUITEM       'emsU' /* Menu item */
 #define TAG_MSG            'GSEM' /* Message */


Reply via email to