mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:42:57 +00:00
[APPWIZ] start_params: Simplify using L"..."
This commit is contained in:
parent
df531336b1
commit
1e5e184cbd
1 changed files with 5 additions and 6 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue