Alexandre Julliard : notepad: Use C runtime wchar functions instead of wine/unicode.h.
Alexandre Julliard
julliard at winehq.org
Mon Apr 1 16:32:01 CDT 2019
Module: wine
Branch: master
Commit: ad21554ecd8d7a41e95f5feeee2a1aa36ada252e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=ad21554ecd8d7a41e95f5feeee2a1aa36ada252e
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Apr 1 11:42:31 2019 +0200
notepad: Use C runtime wchar functions instead of wine/unicode.h.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/notepad/main.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/programs/notepad/main.c b/programs/notepad/main.c
index da39eec..37ee7ec 100644
--- a/programs/notepad/main.c
+++ b/programs/notepad/main.c
@@ -31,7 +31,6 @@
#include "main.h"
#include "dialog.h"
#include "notepad_res.h"
-#include "wine/unicode.h"
NOTEPAD_GLOBALS Globals;
static ATOM aFINDMSGSTRING;
@@ -684,7 +683,7 @@ static void HandleCommandLine(LPWSTR cmdline)
static const WCHAR txtW[] = { '.','t','x','t',0 };
/* try to find file with ".txt" extension */
- if (strchrW(PathFindFileNameW(cmdline), '.'))
+ if (wcschr(PathFindFileNameW(cmdline), '.'))
{
file_exists = FALSE;
file_name = cmdline;
More information about the wine-cvs
mailing list