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
7c97735b
Commit
7c97735b
authored
Jan 06, 2008
by
Kirill K. Smirnov
Committed by
Alexandre Julliard
Jan 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Fix index to handle offset value = 0 correclty.
parent
76bbd027
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
winhelp.c
programs/winhelp/winhelp.c
+9
-0
No files found.
programs/winhelp/winhelp.c
View file @
7c97735b
...
...
@@ -1972,6 +1972,10 @@ static void cb_KWBTree(void *p, void **next, void *cookie)
*
* Index dialog callback function.
*
* nResult passed to EndDialog:
* 1: CANCEL button
* >1: valid offset value +2.
* EndDialog itself can return 0 (error).
*/
INT_PTR
CALLBACK
WINHELP_SearchDlgProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
...
...
@@ -2011,6 +2015,7 @@ INT_PTR CALLBACK WINHELP_SearchDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARA
MessageBox
(
hWnd
,
"macro keywords not supported yet"
,
"Error"
,
MB_OK
|
MB_ICONSTOP
);
return
TRUE
;
}
offset
+=
2
;
}
/* Fall through */
case
IDCANCEL
:
...
...
@@ -2051,6 +2056,10 @@ BOOL WINHELP_CreateIndexWindow(void)
Globals
.
active_win
->
hMainWnd
,
WINHELP_SearchDlgProc
,
(
LPARAM
)
hlpfile
);
if
(
ret
>
1
)
{
ret
-=
2
;
WINE_TRACE
(
"got %d as an offset
\n
"
,
ret
);
WINHELP_CreateHelpWindowByOffset
(
hlpfile
,
ret
,
Globals
.
active_win
->
info
,
SW_NORMAL
);
}
return
TRUE
;
}
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