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
65b1f9f0
Commit
65b1f9f0
authored
Jan 05, 2000
by
Peter Ganten
Committed by
Alexandre Julliard
Jan 05, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check if winhelp is already running; use winhlp32.exe or winhelp.exe
depending on the emulated version, relase win16lock before calling WinHelpA.
parent
c8f1f5e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
21 deletions
+29
-21
winhelp.c
windows/winhelp.c
+29
-21
No files found.
windows/winhelp.c
View file @
65b1f9f0
...
...
@@ -9,8 +9,10 @@
#include "debugtools.h"
#include "wine/winuser16.h"
#include "wine/winbase16.h"
#include "winversion.h"
#include "heap.h"
#include "ldt.h"
#include "syslevel.h"
DEFAULT_DEBUG_CHANNEL
(
win
)
...
...
@@ -21,8 +23,12 @@ DEFAULT_DEBUG_CHANNEL(win)
BOOL16
WINAPI
WinHelp16
(
HWND16
hWnd
,
LPCSTR
lpHelpFile
,
UINT16
wCommand
,
DWORD
dwData
)
{
return
WinHelpA
(
hWnd
,
lpHelpFile
,
wCommand
,
(
DWORD
)
PTR_SEG_TO_LIN
(
dwData
)
);
BOOL
ret
;
/* We might call WinExec() */
SYSLEVEL_ReleaseWin16Lock
();
ret
=
WinHelpA
(
hWnd
,
lpHelpFile
,
wCommand
,
(
DWORD
)
PTR_SEG_TO_LIN
(
dwData
)
);
SYSLEVEL_RestoreWin16Lock
();
return
ret
;
}
...
...
@@ -36,32 +42,34 @@ BOOL WINAPI WinHelpA( HWND hWnd, LPCSTR lpHelpFile, UINT wCommand,
HWND
hDest
;
LPWINHELP
lpwh
;
HGLOBAL16
hwh
;
HINSTANCE
winhelp
;
int
size
,
dsize
,
nlen
;
if
(
wCommand
!=
HELP_QUIT
)
/* FIXME */
{
if
(
WinExec
(
"winhelp.exe -x"
,
SW_SHOWNORMAL
)
<=
32
)
return
FALSE
;
/* NOTE: Probably, this should be directed yield,
to let winhelp open the window in all cases. */
Yield16
();
}
if
(
!
WM_WINHELP
)
{
WM_WINHELP
=
RegisterWindowMessageA
(
"WM_WINHELP"
);
if
(
!
WM_WINHELP
)
return
FALSE
;
}
{
WM_WINHELP
=
RegisterWindowMessageA
(
"WM_WINHELP"
);
if
(
!
WM_WINHELP
)
return
FALSE
;
}
hDest
=
FindWindowA
(
"MS_WINHELP"
,
NULL
);
if
(
!
hDest
)
{
if
(
wCommand
==
HELP_QUIT
)
return
TRUE
;
else
return
FALSE
;
if
(
!
hDest
)
{
if
(
wCommand
==
HELP_QUIT
)
return
TRUE
;
else
if
(
VERSION_GetVersion
()
==
WIN31
)
{
winhelp
=
WinExec
(
"winhelp.exe -x"
,
SW_SHOWNORMAL
);
Yield16
();
}
else
{
winhelp
=
WinExec
(
"winhlp32.exe -x"
,
SW_SHOWNORMAL
);
}
if
(
winhelp
<=
32
)
return
FALSE
;
if
(
!
(
hDest
=
FindWindowA
(
"MS_WINHELP"
,
NULL
)
))
return
FALSE
;
}
switch
(
wCommand
)
{
case
HELP_CONTEXT
:
...
...
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