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
68e88700
Commit
68e88700
authored
Feb 16, 2009
by
Dylan Smith
Committed by
Alexandre Julliard
Feb 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Handle quoted filenames in doWinMain.
parent
3903a110
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
hhctrl.c
dlls/hhctrl.ocx/hhctrl.c
+18
-1
No files found.
dlls/hhctrl.ocx/hhctrl.c
View file @
68e88700
...
...
@@ -249,11 +249,28 @@ HWND WINAPI HtmlHelpA(HWND caller, LPCSTR filename, UINT command, DWORD_PTR data
int
WINAPI
doWinMain
(
HINSTANCE
hInstance
,
LPSTR
szCmdLine
)
{
MSG
msg
;
int
len
,
buflen
;
WCHAR
*
filename
;
char
*
endq
=
NULL
;
hh_process
=
TRUE
;
/* FIXME: Check szCmdLine for bad arguments */
HtmlHelpA
(
GetDesktopWindow
(),
szCmdLine
,
HH_DISPLAY_TOPIC
,
0
);
if
(
*
szCmdLine
==
'\"'
)
endq
=
strchr
(
++
szCmdLine
,
'\"'
);
if
(
endq
)
len
=
endq
-
szCmdLine
;
else
len
=
strlen
(
szCmdLine
);
buflen
=
MultiByteToWideChar
(
CP_ACP
,
0
,
szCmdLine
,
len
,
NULL
,
0
)
+
1
;
filename
=
heap_alloc
(
buflen
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
szCmdLine
,
len
,
filename
,
buflen
);
filename
[
buflen
-
1
]
=
0
;
HtmlHelpW
(
GetDesktopWindow
(),
filename
,
HH_DISPLAY_TOPIC
,
0
);
heap_free
(
filename
);
while
(
GetMessageW
(
&
msg
,
0
,
0
,
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