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
e3beef0a
Commit
e3beef0a
authored
May 30, 2009
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhlp32: Remove the lpszName field from the window structure, as it's given by the window info.
parent
a6104304
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
14 deletions
+7
-14
macro.c
programs/winhlp32/macro.c
+3
-3
winhelp.c
programs/winhlp32/winhelp.c
+4
-9
winhelp.h
programs/winhlp32/winhelp.h
+0
-2
No files found.
programs/winhlp32/macro.c
View file @
e3beef0a
...
...
@@ -280,7 +280,7 @@ static void CALLBACK MACRO_CloseSecondarys(void)
WINE_TRACE
(
"()
\n
"
);
for
(
win
=
Globals
.
win_list
;
win
;
win
=
win
->
next
)
if
(
win
->
lpszName
&&
lstrcmpi
(
win
->
lpszN
ame
,
"main"
))
if
(
lstrcmpi
(
win
->
info
->
n
ame
,
"main"
))
DestroyWindow
(
win
->
hMainWnd
);
}
...
...
@@ -293,7 +293,7 @@ static void CALLBACK MACRO_CloseWindow(LPCSTR lpszWindow)
if
(
!
lpszWindow
||
!
lpszWindow
[
0
])
lpszWindow
=
"main"
;
for
(
win
=
Globals
.
win_list
;
win
;
win
=
win
->
next
)
if
(
win
->
lpszName
&&
!
lstrcmpi
(
win
->
lpszN
ame
,
lpszWindow
))
if
(
!
lstrcmpi
(
win
->
info
->
n
ame
,
lpszWindow
))
DestroyWindow
(
win
->
hMainWnd
);
}
...
...
@@ -430,7 +430,7 @@ static void CALLBACK MACRO_FocusWindow(LPCSTR lpszWindow)
if
(
!
lpszWindow
||
!
lpszWindow
[
0
])
lpszWindow
=
"main"
;
for
(
win
=
Globals
.
win_list
;
win
;
win
=
win
->
next
)
if
(
win
->
lpszName
&&
!
lstrcmpi
(
win
->
lpszN
ame
,
lpszWindow
))
if
(
!
lstrcmpi
(
win
->
info
->
n
ame
,
lpszWindow
))
SetFocus
(
win
->
hMainWnd
);
}
...
...
programs/winhlp32/winhelp.c
View file @
e3beef0a
...
...
@@ -257,7 +257,7 @@ HLPFILE_WINDOWINFO* WINHELP_GetWindowInfo(HLPFILE* hlpfile, LPCSTR name)
unsigned
int
i
;
if
(
!
name
||
!
name
[
0
])
name
=
Globals
.
active_win
->
lpszN
ame
;
name
=
Globals
.
active_win
->
info
->
n
ame
;
if
(
hlpfile
)
for
(
i
=
0
;
i
<
hlpfile
->
numWindows
;
i
++
)
...
...
@@ -645,7 +645,6 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow, BOOL remembe
{
WINHELP_WINDOW
*
win
=
NULL
;
BOOL
bPrimary
,
bPopup
,
bReUsed
=
FALSE
;
LPSTR
name
;
HICON
hIcon
;
HWND
hTextWnd
=
NULL
;
...
...
@@ -656,7 +655,7 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow, BOOL remembe
{
for
(
win
=
Globals
.
win_list
;
win
;
win
=
win
->
next
)
{
if
(
!
lstrcmpi
(
win
->
lpszN
ame
,
wpage
->
wininfo
->
name
))
if
(
!
lstrcmpi
(
win
->
info
->
n
ame
,
wpage
->
wininfo
->
name
))
{
POINT
pt
=
{
0
,
0
};
SIZE
sz
=
{
0
,
0
};
...
...
@@ -699,15 +698,11 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow, BOOL remembe
if
(
!
win
)
{
/* Initialize WINHELP_WINDOW struct */
win
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
WINHELP_WINDOW
)
+
strlen
(
wpage
->
wininfo
->
name
)
+
1
);
win
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
WINHELP_WINDOW
));
if
(
!
win
)
return
FALSE
;
win
->
next
=
Globals
.
win_list
;
Globals
.
win_list
=
win
;
name
=
(
char
*
)
win
+
sizeof
(
WINHELP_WINDOW
);
lstrcpy
(
name
,
wpage
->
wininfo
->
name
);
win
->
lpszName
=
name
;
win
->
hHandCur
=
LoadCursorW
(
0
,
(
LPWSTR
)
IDC_HAND
);
win
->
back
.
index
=
0
;
win
->
font_scale
=
1
;
...
...
@@ -1496,7 +1491,7 @@ static LRESULT CALLBACK WINHELP_MainWndProc(HWND hWnd, UINT msg, WPARAM wParam,
{
BOOL
bExit
;
win
=
(
WINHELP_WINDOW
*
)
GetWindowLongPtr
(
hWnd
,
0
);
bExit
=
(
Globals
.
wVersion
>=
4
&&
!
lstrcmpi
(
win
->
lpszN
ame
,
"main"
));
bExit
=
(
Globals
.
wVersion
>=
4
&&
!
lstrcmpi
(
win
->
info
->
n
ame
,
"main"
));
WINHELP_DeleteWindow
(
win
);
if
(
bExit
)
MACRO_Exit
();
...
...
programs/winhlp32/winhelp.h
View file @
e3beef0a
...
...
@@ -71,8 +71,6 @@ typedef struct tagPageSet
typedef
struct
tagWinHelp
{
LPCSTR
lpszName
;
WINHELP_BUTTON
*
first_button
;
HLPFILE_PAGE
*
page
;
...
...
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