Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1341e9ae
Commit
1341e9ae
authored
Sep 25, 2003
by
Pavel Roskin
Committed by
Alexandre Julliard
Sep 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix processing of the command line.
parent
16cd8619
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
control.c
programs/control/control.c
+7
-11
No files found.
programs/control/control.c
View file @
1341e9ae
...
...
@@ -30,19 +30,19 @@ void launch(const char *what)
exit
(
0
);
}
int
WINAPI
WinMain
(
HINSTANCE
hInst
,
HINSTANCE
hPrev
,
CHAR
*
szParam
,
INT
argc
)
int
WINAPI
WinMain
(
HINSTANCE
hInst
,
HINSTANCE
hPrev
,
LPSTR
lpszCmdLine
,
INT
nCmdShow
)
{
char
szParams
[
255
];
lstrcpy
(
szParams
,
szParam
);
lstrcpy
(
szParams
,
lpszCmdLine
);
CharUpper
(
szParams
);
switch
(
argc
)
{
case
0
:
/* no parameters - pop up whole "Control Panel" by default */
/* no parameters - pop up whole "Control Panel" by default */
if
(
!*
szParams
)
{
launch
(
""
);
break
;
return
0
;
}
case
1
:
/* check for optional parameter */
/* check for optional parameter */
if
(
!
strcmp
(
szParams
,
szP_DESKTOP
))
launch
(
szC_DESKTOP
);
if
(
!
strcmp
(
szParams
,
szP_COLOR
))
...
...
@@ -64,9 +64,5 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, CHAR *szParam, INT argc)
/* try to launch if a .cpl file is given directly */
launch
(
szParams
);
break
;
default:
printf
(
"Syntax error."
);
}
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment