Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
cedf6308
Commit
cedf6308
authored
Feb 14, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Feb 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Fix the character count passed to GetFullPathNameW in OpenCHM and NavigateToChm.
parent
9ca4680f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
chm.c
dlls/hhctrl.ocx/chm.c
+1
-1
help.c
dlls/hhctrl.ocx/help.c
+1
-1
No files found.
dlls/hhctrl.ocx/chm.c
View file @
cedf6308
...
...
@@ -342,7 +342,7 @@ CHMInfo *OpenCHM(LPCWSTR szFile)
CHMInfo
*
ret
=
heap_alloc_zero
(
sizeof
(
CHMInfo
));
res
=
GetFullPathNameW
(
szFile
,
sizeof
(
file
),
file
,
NULL
);
res
=
GetFullPathNameW
(
szFile
,
sizeof
(
file
)
/
sizeof
(
file
[
0
])
,
file
,
NULL
);
ret
->
szFile
=
strdupW
(
file
);
hres
=
CoCreateInstance
(
&
CLSID_ITStorage
,
NULL
,
CLSCTX_INPROC_SERVER
,
...
...
dlls/hhctrl.ocx/help.c
View file @
cedf6308
...
...
@@ -115,7 +115,7 @@ BOOL NavigateToChm(HHInfo *info, LPCWSTR file, LPCWSTR index)
if
(
!
info
->
web_browser
)
return
FALSE
;
if
(
!
GetFullPathNameW
(
file
,
sizeof
(
full_path
),
full_path
,
NULL
))
{
if
(
!
GetFullPathNameW
(
file
,
sizeof
(
full_path
)
/
sizeof
(
full_path
[
0
])
,
full_path
,
NULL
))
{
WARN
(
"GetFullPathName failed: %u
\n
"
,
GetLastError
());
return
FALSE
;
}
...
...
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