[PATCH 2/4] comctl32/propsheet: Use wide string literals.

Nikolay Sivov nsivov at codeweavers.com
Mon May 4 06:11:58 CDT 2020


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/comctl32/propsheet.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c
index 05ab4aa48d..1604b9e961 100644
--- a/dlls/comctl32/propsheet.c
+++ b/dlls/comctl32/propsheet.c
@@ -139,8 +139,7 @@ typedef struct
  * Defines and global variables
  */
 
-static const WCHAR PropSheetInfoStr[] =
-    {'P','r','o','p','e','r','t','y','S','h','e','e','t','I','n','f','o',0 };
+static const WCHAR PropSheetInfoStr[] = L"PropertySheetInfo";
 
 #define PSP_INTERNAL_UNICODE 0x80000000
 
@@ -546,7 +545,6 @@ static BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEW lppsp,
   {
     WCHAR szTitle[256];
     const WCHAR *pTitle;
-    static const WCHAR pszNull[] = { '(','n','u','l','l',')',0 };
 
     if (IS_INTRESOURCE( lppsp->pszTitle ))
     {
@@ -555,7 +553,7 @@ static BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEW lppsp,
       else if (*p)
         pTitle = p;
       else
-        pTitle = pszNull;
+        pTitle = L"(null)";
     }
     else
       pTitle = lppsp->pszTitle;
-- 
2.26.2




More information about the wine-devel mailing list