Skip to content
Snippets Groups Projects
Commit 48964553 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard
Browse files

write: Use wide-char string literals.

parent b3a5662c
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment