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
2cf1925e
Commit
2cf1925e
authored
Apr 26, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Open the filename passed on command line if any.
parent
09c6bf41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
wordpad.c
programs/wordpad/wordpad.c
+16
-13
No files found.
programs/wordpad/wordpad.c
View file @
2cf1925e
...
...
@@ -1041,23 +1041,26 @@ static void HandleCommandLine(LPWSTR cmdline)
while
(
*
cmdline
&&
*
cmdline
!=
delimiter
)
cmdline
++
;
if
(
*
cmdline
==
delimiter
)
cmdline
++
;
while
(
*
cmdline
==
' '
||
*
cmdline
==
'-'
||
*
cmdline
==
'/'
)
while
(
*
cmdline
)
{
WCHAR
option
;
while
(
isspace
(
*
cmdline
))
cmdline
++
;
if
(
*
cmdline
++
==
' '
)
continue
;
option
=
*
cmdline
;
if
(
option
)
cmdline
++
;
while
(
*
cmdline
==
' '
)
cmdline
++
;
switch
(
option
)
if
(
*
cmdline
==
'-'
||
*
cmdline
==
'/'
)
{
case
'p'
:
case
'P'
:
opt_print
=
1
;
break
;
if
(
!
cmdline
[
2
]
||
isspace
(
cmdline
[
2
]))
{
switch
(
cmdline
[
1
])
{
case
'P'
:
case
'p'
:
opt_print
=
1
;
cmdline
+=
2
;
continue
;
}
}
/* a filename starting by / */
}
break
;
}
if
(
*
cmdline
)
...
...
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