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
2f245af0
Commit
2f245af0
authored
Sep 12, 2000
by
Huw D M Davies
Committed by
Alexandre Julliard
Sep 12, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't try to delete a wndclass background brush if it's a COLOR_*
constant.
parent
a2bdadec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
class.c
windows/class.c
+4
-3
No files found.
windows/class.c
View file @
2f245af0
...
...
@@ -240,7 +240,7 @@ static void CLASS_SetClassNameW( CLASS *classPtr, LPCWSTR name )
static
BOOL
CLASS_FreeClass
(
CLASS
*
classPtr
)
{
CLASS
**
ppClass
;
TRACE
(
"%p
\n
"
,
classPtr
);
TRACE
(
"%p
\n
"
,
classPtr
);
/* Check if we can remove this class */
...
...
@@ -260,7 +260,8 @@ static BOOL CLASS_FreeClass( CLASS *classPtr )
/* Delete the class */
if
(
classPtr
->
dce
)
DCE_FreeDCE
(
classPtr
->
dce
);
if
(
classPtr
->
hbrBackground
)
DeleteObject
(
classPtr
->
hbrBackground
);
if
(
classPtr
->
hbrBackground
>
(
HBRUSH
)(
COLOR_GRADIENTINACTIVECAPTION
+
1
))
DeleteObject
(
classPtr
->
hbrBackground
);
GlobalDeleteAtom
(
classPtr
->
atomName
);
CLASS_SetMenuNameA
(
classPtr
,
NULL
);
CLASS_SetClassNameA
(
classPtr
,
NULL
);
...
...
@@ -277,7 +278,7 @@ void CLASS_FreeModuleClasses( HMODULE16 hModule )
{
CLASS
*
ptr
,
*
next
;
TRACE
(
"0x%08x
\n
"
,
hModule
);
TRACE
(
"0x%08x
\n
"
,
hModule
);
for
(
ptr
=
firstClass
;
ptr
;
ptr
=
next
)
{
...
...
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