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
d982a71b
Commit
d982a71b
authored
Nov 01, 1998
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 01, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't HeapFree() colormap if we didn't allocate one.
parent
9cfe2d53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
dib.c
objects/dib.c
+3
-2
No files found.
objects/dib.c
View file @
d982a71b
...
...
@@ -1280,7 +1280,8 @@ INT32 WINAPI SetDIBits32( HDC32 hdc, HBITMAP32 hbitmap, UINT32 startscan,
GDI_HEAP_UNLOCK
(
hdc
);
return
0
;
}
}
}
else
descr
.
colorMap
=
0
;
/* HACK for now */
if
(
!
bmp
->
DDBitmap
)
...
...
@@ -1306,7 +1307,7 @@ INT32 WINAPI SetDIBits32( HDC32 hdc, HBITMAP32 hbitmap, UINT32 startscan,
result
=
CALL_LARGE_STACK
(
DIB_SetImageBits
,
&
descr
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
HeapFree
(
GetProcessHeap
(),
0
,
descr
.
colorMap
);
if
(
descr
.
colorMap
)
HeapFree
(
GetProcessHeap
(),
0
,
descr
.
colorMap
);
GDI_HEAP_UNLOCK
(
hdc
);
GDI_HEAP_UNLOCK
(
hbitmap
);
...
...
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