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
9cc9d591
Commit
9cc9d591
authored
Jun 20, 2000
by
Rein Klazes
Committed by
Alexandre Julliard
Jun 20, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a crash in winhelp caused by hmemcpy16 without prototype.
Fix some compiler warnings.
parent
6953d675
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
+14
-14
hlpfile.c
programs/winhelp/hlpfile.c
+3
-3
macro.c
programs/winhelp/macro.c
+3
-3
macro.lex.l
programs/winhelp/macro.lex.l
+1
-1
winhelp.c
programs/winhelp/winhelp.c
+7
-7
No files found.
programs/winhelp/hlpfile.c
View file @
9cc9d591
...
...
@@ -706,7 +706,7 @@ static BYTE *HLPFILE_Uncompress1(BYTE *ptr, BYTE *end, BYTE *newptr)
INT
code
=
GET_USHORT
(
ptr
,
0
);
INT
len
=
3
+
(
code
>>
12
);
INT
offset
=
code
&
0xfff
;
hmemcpy16
(
newptr
,
newptr
-
offset
-
1
,
len
);
memcpy
(
newptr
,
newptr
-
offset
-
1
,
len
);
newptr
+=
len
;
ptr
+=
2
;
}
...
...
@@ -738,7 +738,7 @@ static BOOL HLPFILE_Uncompress1_Phrases()
if
(
!
phrases
.
hBuffer
)
return
FALSE
;
newbuf
=
phrases
.
buf
=
GlobalLock
(
phrases
.
hBuffer
);
hmemcpy16
(
newbuf
,
buf
+
0x11
,
2
*
num
+
2
);
memcpy
(
newbuf
,
buf
+
0x11
,
2
*
num
+
2
);
HLPFILE_Uncompress1
(
buf
+
0x13
+
2
*
num
,
end
,
newbuf
+
2
*
num
+
2
);
for
(
i
=
0
;
i
<
num
;
i
++
)
...
...
@@ -856,7 +856,7 @@ static VOID HLPFILE_Uncompress2(BYTE **pptr, BYTE *end, BYTE *newptr)
phptr
=
phrases
.
buf
+
GET_USHORT
(
phrases
.
buf
,
2
*
index
);
phend
=
phrases
.
buf
+
GET_USHORT
(
phrases
.
buf
,
2
*
index
+
2
);
hmemcpy16
(
newptr
,
phptr
,
phend
-
phptr
);
memcpy
(
newptr
,
phptr
,
phend
-
phptr
);
newptr
+=
phend
-
phptr
;
if
(
space
)
*
newptr
++
=
' '
;
...
...
programs/winhelp/macro.c
View file @
9cc9d591
...
...
@@ -286,7 +286,7 @@ VOID MACRO_FileOpen(VOID)
openfilename
.
lpTemplateName
=
0
;
if
(
GetOpenFileName
(
&
openfilename
))
WINHELP_CreateHelpWindow
(
szPath
,
0
,
"main"
,
FALSE
,
NULL
,
NULL
,
SW_SHOWNORMAL
);
WINHELP_CreateHelpWindow
(
szPath
,
0
,
"main"
,
FALSE
,
0
,
NULL
,
SW_SHOWNORMAL
);
}
VOID
MACRO_Find
(
VOID
)
...
...
@@ -375,7 +375,7 @@ BOOL MACRO_IsNotMark(LPCSTR str)
VOID
MACRO_JumpContents
(
LPCSTR
lpszPath
,
LPCSTR
lpszWindow
)
{
WINHELP_CreateHelpWindow
(
lpszPath
,
0
,
lpszWindow
,
FALSE
,
NULL
,
NULL
,
SW_NORMAL
);
WINHELP_CreateHelpWindow
(
lpszPath
,
0
,
lpszWindow
,
FALSE
,
0
,
NULL
,
SW_NORMAL
);
}
VOID
MACRO_JumpContext
(
LPCSTR
lpszPath
,
LPCSTR
lpszWindow
,
LONG
context
)
...
...
@@ -385,7 +385,7 @@ VOID MACRO_JumpContext(LPCSTR lpszPath, LPCSTR lpszWindow, LONG context)
VOID
MACRO_JumpHash
(
LPCSTR
lpszPath
,
LPCSTR
lpszWindow
,
LONG
lHash
)
{
WINHELP_CreateHelpWindow
(
lpszPath
,
lHash
,
lpszWindow
,
FALSE
,
NULL
,
NULL
,
SW_NORMAL
);
WINHELP_CreateHelpWindow
(
lpszPath
,
lHash
,
lpszWindow
,
FALSE
,
0
,
NULL
,
SW_NORMAL
);
}
VOID
MACRO_JumpHelpOn
(
VOID
)
...
...
programs/winhelp/macro.lex.l
View file @
9cc9d591
...
...
@@ -161,7 +161,7 @@ UpdateWindow|UW yylval = (YYSTYPE)MACRO_UpdateWindow; return VOID_FUNCTION_2ST
#include "winhelp.h"
static CHAR szTestMacro[256];
static LRESULT MACRO_TestDialogProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
static LRESULT
CALLBACK
MACRO_TestDialogProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
if (msg == WM_COMMAND && wParam == IDOK)
{
...
...
programs/winhelp/winhelp.c
View file @
9cc9d591
...
...
@@ -15,9 +15,9 @@
#endif
static
BOOL
WINHELP_RegisterWinClasses
();
static
LRESULT
WINHELP_MainWndProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
static
LRESULT
WINHELP_TextWndProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
static
LRESULT
WINHELP_ButtonBoxWndProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
static
LRESULT
CALLBACK
WINHELP_MainWndProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
static
LRESULT
CALLBACK
WINHELP_TextWndProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
static
LRESULT
CALLBACK
WINHELP_ButtonBoxWndProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
static
VOID
WINHELP_CheckPopup
(
UINT
);
static
BOOL
WINHELP_SplitLines
(
HWND
hWnd
,
LPSIZE
);
static
VOID
WINHELP_InitFonts
(
HWND
hWnd
);
...
...
@@ -328,7 +328,7 @@ VOID WINHELP_CreateHelpWindow(LPCSTR lpszFile, LONG lHash, LPCSTR lpszWindow,
* WINHELP_MainWndProc
*/
static
LRESULT
WINHELP_MainWndProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
static
LRESULT
CALLBACK
WINHELP_MainWndProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
WINHELP_WINDOW
*
win
;
WINHELP_BUTTON
*
button
;
...
...
@@ -426,7 +426,7 @@ static LRESULT WINHELP_MainWndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM l
* WINHELP_ButtonBoxWndProc
*/
static
LRESULT
WINHELP_ButtonBoxWndProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
static
LRESULT
CALLBACK
WINHELP_ButtonBoxWndProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
WINDOWPOS
*
winpos
;
WINHELP_WINDOW
*
win
;
...
...
@@ -497,7 +497,7 @@ static LRESULT WINHELP_ButtonBoxWndProc (HWND hWnd, UINT msg, WPARAM wParam, LPA
* WINHELP_TextWndProc
*/
static
LRESULT
WINHELP_TextWndProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
static
LRESULT
CALLBACK
WINHELP_TextWndProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
WINHELP_WINDOW
*
win
;
WINHELP_LINE
*
line
;
...
...
@@ -885,7 +885,7 @@ static BOOL WINHELP_AppendText(WINHELP_LINE ***linep, WINHELP_LINE_PART ***partp
ptr
+=
sizeof
(
WINHELP_LINE_PART
);
}
hmemcpy16
(
ptr
,
text
,
textlen
);
memcpy
(
ptr
,
text
,
textlen
);
part
->
rect
.
left
=
line
->
rect
.
right
+
(
*
partp
?
space
->
cx
:
0
);
part
->
rect
.
right
=
part
->
rect
.
left
+
textsize
->
cx
;
line
->
rect
.
right
=
part
->
rect
.
right
;
...
...
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