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
f2bf0227
Commit
f2bf0227
authored
May 13, 2015
by
Alex Henrie
Committed by
Alexandre Julliard
May 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Do not return the class icon when ICON_SMALL2 is requested.
parent
f4c59406
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
defwnd.c
dlls/user32/defwnd.c
+0
-2
class.c
dlls/user32/tests/class.c
+7
-0
No files found.
dlls/user32/defwnd.c
View file @
f2bf0227
...
...
@@ -640,8 +640,6 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
break
;
case
ICON_SMALL2
:
ret
=
wndPtr
->
hIconSmall
;
if
(
!
ret
)
ret
=
(
HICON
)
GetClassLongPtrW
(
hwnd
,
GCLP_HICONSM
);
/* FIXME: should have a default here if class icon is null */
break
;
default:
ret
=
0
;
...
...
dlls/user32/tests/class.c
View file @
f2bf0227
...
...
@@ -1002,6 +1002,13 @@ static void test_icons(void)
hsmicon
=
(
HICON
)
GetClassLongPtrW
(
hwnd
,
GCLP_HICONSM
);
ok
(
hsmicon
!=
NULL
,
"GetClassLong should return non-zero handle
\n
"
);
ok
(
SendMessageA
(
hwnd
,
WM_GETICON
,
ICON_BIG
,
0
)
==
0
,
"WM_GETICON with ICON_BIG should not return the class icon
\n
"
);
ok
(
SendMessageA
(
hwnd
,
WM_GETICON
,
ICON_SMALL
,
0
)
==
0
,
"WM_GETICON with ICON_SMALL should not return the class icon
\n
"
);
ok
(
SendMessageA
(
hwnd
,
WM_GETICON
,
ICON_SMALL2
,
0
)
==
0
,
"WM_GETICON with ICON_SMALL2 should not return the class icon
\n
"
);
hsmallnew
=
CopyImage
(
wcex
.
hIcon
,
IMAGE_ICON
,
GetSystemMetrics
(
SM_CXSMICON
),
GetSystemMetrics
(
SM_CYSMICON
),
0
);
ok
(
!
SetClassLongPtrW
(
hwnd
,
GCLP_HICONSM
,
(
LONG_PTR
)
hsmallnew
),
...
...
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