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
29c0ecfd
Commit
29c0ecfd
authored
Dec 21, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Use the module instance instead of that of the owner window for the about dialog.
parent
ff0d84d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
shell32_main.c
dlls/shell32/shell32_main.c
+1
-8
No files found.
dlls/shell32/shell32_main.c
View file @
29c0ecfd
...
...
@@ -1043,18 +1043,12 @@ BOOL WINAPI ShellAboutW( HWND hWnd, LPCWSTR szApp, LPCWSTR szOtherStuff,
{
ABOUT_INFO
info
;
LOGFONTW
logFont
;
HRSRC
hRes
;
LPVOID
template
;
BOOL
bRet
;
static
const
WCHAR
wszSHELL_ABOUT_MSGBOX
[]
=
{
'S'
,
'H'
,
'E'
,
'L'
,
'L'
,
'_'
,
'A'
,
'B'
,
'O'
,
'U'
,
'T'
,
'_'
,
'M'
,
'S'
,
'G'
,
'B'
,
'O'
,
'X'
,
0
};
TRACE
(
"
\n
"
);
if
(
!
(
hRes
=
FindResourceW
(
shell32_hInstance
,
wszSHELL_ABOUT_MSGBOX
,
(
LPWSTR
)
RT_DIALOG
)))
return
FALSE
;
if
(
!
(
template
=
LoadResource
(
shell32_hInstance
,
hRes
)))
return
FALSE
;
if
(
!
hIcon
)
hIcon
=
LoadImageW
(
0
,
(
LPWSTR
)
IDI_WINLOGO
,
IMAGE_ICON
,
48
,
48
,
LR_SHARED
);
info
.
szApp
=
szApp
;
info
.
szOtherStuff
=
szOtherStuff
;
...
...
@@ -1063,8 +1057,7 @@ BOOL WINAPI ShellAboutW( HWND hWnd, LPCWSTR szApp, LPCWSTR szOtherStuff,
SystemParametersInfoW
(
SPI_GETICONTITLELOGFONT
,
0
,
&
logFont
,
0
);
info
.
hFont
=
CreateFontIndirectW
(
&
logFont
);
bRet
=
DialogBoxIndirectParamW
((
HINSTANCE
)
GetWindowLongPtrW
(
hWnd
,
GWLP_HINSTANCE
),
template
,
hWnd
,
AboutDlgProc
,
(
LPARAM
)
&
info
);
bRet
=
DialogBoxParamW
(
shell32_hInstance
,
wszSHELL_ABOUT_MSGBOX
,
hWnd
,
AboutDlgProc
,
(
LPARAM
)
&
info
);
DeleteObject
(
info
.
hFont
);
return
bRet
;
}
...
...
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