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
d696f21b
Commit
d696f21b
authored
Sep 23, 2004
by
Ken Belleau
Committed by
Alexandre Julliard
Sep 23, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Removed the deprecated OF_SEARCH flag.
- Handle quotes in command-line parsing.
parent
b72a6827
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
hlpfile.c
programs/winhelp/hlpfile.c
+1
-1
winhelp.c
programs/winhelp/winhelp.c
+6
-0
No files found.
programs/winhelp/hlpfile.c
View file @
d696f21b
...
...
@@ -287,7 +287,7 @@ static BOOL HLPFILE_DoReadHlpFile(HLPFILE *hlpfile, LPCSTR lpszPath)
DWORD
ref
=
0x0C
;
unsigned
index
,
old_index
,
offset
,
len
,
offs
;
hFile
=
OpenFile
(
lpszPath
,
&
ofs
,
OF_READ
|
OF_SEARCH
);
hFile
=
OpenFile
(
lpszPath
,
&
ofs
,
OF_READ
);
if
(
hFile
==
HFILE_ERROR
)
return
FALSE
;
ret
=
HLPFILE_ReadFileToBuffer
(
hFile
);
...
...
programs/winhelp/winhelp.c
View file @
d696f21b
...
...
@@ -164,6 +164,7 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
MSG
msg
;
LONG
lHash
=
0
;
HLPFILE
*
hlpfile
;
CHAR
*
quote
;
Globals
.
hInstance
=
hInstance
;
...
...
@@ -207,6 +208,11 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
WINHELP_RegisterWinClasses
();
if
(
*
cmdline
)
{
if
((
*
cmdline
==
'"'
)
&&
(
quote
=
strchr
(
cmdline
+
1
,
'"'
)))
{
cmdline
++
;
*
quote
=
'\0'
;
}
hlpfile
=
WINHELP_LookupHelpFile
(
cmdline
);
if
(
!
hlpfile
)
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