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
f76de3d0
Commit
f76de3d0
authored
Aug 12, 2007
by
Marcus Meissner
Committed by
Alexandre Julliard
Aug 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Initialize MONITORINFO.cbSize.
parent
03585070
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
msgbox.c
dlls/user32/msgbox.c
+1
-0
No files found.
dlls/user32/msgbox.c
View file @
f76de3d0
...
...
@@ -248,6 +248,7 @@ static HFONT MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
/* Message boxes are always desktop centered, so query desktop size and center window */
monitor
=
MonitorFromWindow
(
lpmb
->
hwndOwner
?
lpmb
->
hwndOwner
:
GetActiveWindow
(),
MONITOR_DEFAULTTOPRIMARY
);
mon_info
.
cbSize
=
sizeof
(
mon_info
);
GetMonitorInfoW
(
monitor
,
&
mon_info
);
wleft
=
(
mon_info
.
rcWork
.
left
+
mon_info
.
rcWork
.
right
-
wwidth
)
/
2
;
wtop
=
(
mon_info
.
rcWork
.
top
+
mon_info
.
rcWork
.
bottom
-
wheight
)
/
2
;
...
...
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