[APPWIZ] start_params: Simplify using L"..."

This commit is contained in:
Katayama Hirofumi MZ 2023-05-11 13:01:02 +09:00
parent df531336b1
commit 1e5e184cbd

View file

@ -16,18 +16,17 @@ HINSTANCE hApplet = NULL;
static LONG start_params(const WCHAR *params, HWND hwnd_parent) 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}; if (!params)
static const WCHAR install_monoW[] = {'i','n','s','t','a','l','l','_','m','o','n','o',0};
if(!params)
return FALSE; return FALSE;
if(!strcmpW(params, install_geckoW)) { if (!strcmpW(params, L"install_gecko"))
{
install_addon(ADDON_GECKO, hwnd_parent); install_addon(ADDON_GECKO, hwnd_parent);
return TRUE; return TRUE;
} }
if(!strcmpW(params, install_monoW)) { if (!strcmpW(params, L"install_mono"))
{
install_addon(ADDON_MONO, hwnd_parent); install_addon(ADDON_MONO, hwnd_parent);
return TRUE; return TRUE;
} }