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
0768a62f
Commit
0768a62f
authored
May 14, 2015
by
Alex Henrie
Committed by
Alexandre Julliard
May 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Simplify GCLP_HICON and GCLP_HICONSM boolean logic.
parent
2a94355c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
class.c
dlls/user32/class.c
+6
-7
No files found.
dlls/user32/class.c
View file @
0768a62f
...
...
@@ -977,7 +977,7 @@ static ULONG_PTR CLASS_SetClassLong( HWND hwnd, INT offset, LONG_PTR newval,
break
;
case
GCLP_HICON
:
retval
=
(
ULONG_PTR
)
class
->
hIcon
;
if
(
retval
&&
class
->
hIconSmIntern
)
if
(
class
->
hIconSmIntern
)
{
DestroyIcon
(
class
->
hIconSmIntern
);
class
->
hIconSmIntern
=
NULL
;
...
...
@@ -990,12 +990,11 @@ static ULONG_PTR CLASS_SetClassLong( HWND hwnd, INT offset, LONG_PTR newval,
break
;
case
GCLP_HICONSM
:
retval
=
(
ULONG_PTR
)
class
->
hIconSm
;
if
(
retval
&&
!
newval
)
class
->
hIconSmIntern
=
class
->
hIcon
?
CopyImage
(
class
->
hIcon
,
IMAGE_ICON
,
GetSystemMetrics
(
SM_CXSMICON
),
GetSystemMetrics
(
SM_CYSMICON
),
LR_COPYFROMRESOURCE
)
:
NULL
;
else
if
(
!
retval
&&
newval
&&
class
->
hIconSmIntern
)
if
(
retval
&&
!
newval
&&
class
->
hIcon
)
class
->
hIconSmIntern
=
CopyImage
(
class
->
hIcon
,
IMAGE_ICON
,
GetSystemMetrics
(
SM_CXSMICON
),
GetSystemMetrics
(
SM_CYSMICON
),
LR_COPYFROMRESOURCE
);
else
if
(
newval
&&
class
->
hIconSmIntern
)
{
DestroyIcon
(
class
->
hIconSmIntern
);
class
->
hIconSmIntern
=
NULL
;
...
...
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