https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1e5e184cbd74e4b141e54…
commit 1e5e184cbd74e4b141e54d841fb44acb2d98a104
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu May 11 13:01:02 2023 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Thu May 11 13:01:02 2023 +0900
[APPWIZ] start_params: Simplify using L"..."
---
dll/cpl/appwiz/appwiz.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/dll/cpl/appwiz/appwiz.c b/dll/cpl/appwiz/appwiz.c
index 2022b531eb3..83c9db9c68e 100644
--- a/dll/cpl/appwiz/appwiz.c
+++ b/dll/cpl/appwiz/appwiz.c
@@ -16,18 +16,17 @@ HINSTANCE hApplet = NULL;
static LONG start_params(const WCHAR *params, HWND hwnd_parent)
{
- static const WCHAR install_geckoW[] =
{'i','n','s','t','a','l','l','_','g','e','c','k','o',0};
- static const WCHAR install_monoW[] =
{'i','n','s','t','a','l','l','_','m','o','n','o',0};
-
- if(!params)
+ if (!params)
return FALSE;
- if(!strcmpW(params, install_geckoW)) {
+ if (!strcmpW(params, L"install_gecko"))
+ {
install_addon(ADDON_GECKO, hwnd_parent);
return TRUE;
}
- if(!strcmpW(params, install_monoW)) {
+ if (!strcmpW(params, L"install_mono"))
+ {
install_addon(ADDON_MONO, hwnd_parent);
return TRUE;
}