Michael Stefaniuc : write: Use wide-char string literals.

Alexandre Julliard julliard at winehq.org
Mon Oct 12 15:20:49 CDT 2020


Module: wine
Branch: master
Commit: 48964553f0aa3d8e26679fff35ae3dee1c934244
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=48964553f0aa3d8e26679fff35ae3dee1c934244

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Mon Oct 12 00:02:48 2020 +0200

write: Use wide-char string literals.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/write/write.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/programs/write/write.c b/programs/write/write.c
index 4039af4398..1481e900f7 100644
--- a/programs/write/write.c
+++ b/programs/write/write.c
@@ -25,17 +25,15 @@
 #include <windows.h>
 #include "resources.h"
 
-static const WCHAR SZ_WORDPAD[]   = {'\\','w','o','r','d','p','a','d','.','e','x','e',0};
-
 int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdParagraph, int res)
 {
     WCHAR path[MAX_PATH];
     STARTUPINFOW stinf;
     PROCESS_INFORMATION info;
 
-    if (!GetSystemDirectoryW(path, MAX_PATH - 1 - lstrlenW(SZ_WORDPAD)))
+    if (!GetSystemDirectoryW(path, MAX_PATH - 1 - lstrlenW(L"\\wordpad.exe")))
 	goto failed;
-    lstrcatW(path, SZ_WORDPAD);
+    lstrcatW(path, L"\\wordpad.exe");
 
     stinf.cb = sizeof(STARTUPINFOW);
     GetStartupInfoW(&stinf);




More information about the wine-cvs mailing list