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
bef9ab5d
Commit
bef9ab5d
authored
Dec 01, 2007
by
Kirill K. Smirnov
Committed by
Alexandre Julliard
Dec 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: winhelp 3.0 uses page numbers instead of hash values.
parent
ee863153
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
hlpfile.c
programs/winhelp/hlpfile.c
+10
-11
No files found.
programs/winhelp/hlpfile.c
View file @
bef9ab5d
...
...
@@ -93,27 +93,22 @@ static BOOL HLPFILE_Uncompress3(char*, const char*, const BYTE*, const BYTE*);
static
void
HLPFILE_UncompressRLE
(
const
BYTE
*
src
,
const
BYTE
*
end
,
BYTE
**
dst
,
unsigned
dstsz
);
static
BOOL
HLPFILE_ReadFont
(
HLPFILE
*
hlpfile
);
#if 0
/***********************************************************************
*
* HLPFILE_PageByNumber
*/
static HLPFILE_PAGE *HLPFILE_PageByNumber(
LPCSTR lpszPath
, UINT wNum)
static
HLPFILE_PAGE
*
HLPFILE_PageByNumber
(
HLPFILE
*
hlpfile
,
UINT
wNum
)
{
HLPFILE_PAGE
*
page
;
HLPFILE *hlpfile = HLPFILE_ReadHlpFile(lpszPath);
if (!hlpfile) return 0;
WINE_TRACE("[%s/%u]\n", lpszPath, wNum);
UINT
temp
=
wNum
;
for (page = hlpfile->first_page; page && wNum; page = page->next) wNum--;
/* HLPFILE_FreeHlpFile(lpszPath); */
WINE_TRACE
(
"<%s>[%u]
\n
"
,
hlpfile
->
lpszPath
,
wNum
);
for
(
page
=
hlpfile
->
first_page
;
page
&&
temp
;
page
=
page
->
next
)
temp
--
;
if
(
!
page
)
WINE_ERR
(
"Page of number %u not found in file %s
\n
"
,
wNum
,
hlpfile
->
lpszPath
);
return
page
;
}
#endif
/* FIXME:
* this finds the page containing the offset. The offset can either
...
...
@@ -164,6 +159,10 @@ HLPFILE_PAGE *HLPFILE_PageByHash(HLPFILE* hlpfile, LONG lHash)
WINE_TRACE
(
"<%s>[%x]
\n
"
,
hlpfile
->
lpszPath
,
lHash
);
/* For win 3.0 files hash values are really page numbers */
if
(
hlpfile
->
version
<=
16
)
return
HLPFILE_PageByNumber
(
hlpfile
,
lHash
);
for
(
i
=
0
;
i
<
hlpfile
->
wContextLen
;
i
++
)
{
if
(
hlpfile
->
Context
[
i
].
lHash
==
lHash
)
...
...
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