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
356eaa1e
Commit
356eaa1e
authored
Jan 31, 2011
by
Alexander Scott-Johns
Committed by
Alexandre Julliard
Jan 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Improve error handling in bitmap synthesizing code.
parent
d2d4fe67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
clipboard.c
dlls/winex11.drv/clipboard.c
+10
-8
No files found.
dlls/winex11.drv/clipboard.c
View file @
356eaa1e
...
...
@@ -1060,21 +1060,23 @@ static BOOL X11DRV_CLIPBOARD_RenderSynthesizedBitmap(Display *display)
if
(
lpSource
->
hData
||
X11DRV_CLIPBOARD_RenderFormat
(
display
,
lpSource
))
{
HDC
hdc
;
HBITMAP
hData
;
HBITMAP
hData
=
NULL
;
unsigned
int
offset
;
LPBITMAPINFOHEADER
lpbmih
;
hdc
=
GetDC
(
NULL
);
lpbmih
=
GlobalLock
(
lpSource
->
hData
);
if
(
lpbmih
)
{
offset
=
sizeof
(
BITMAPINFOHEADER
)
+
((
lpbmih
->
biBitCount
<=
8
)
?
(
sizeof
(
RGBQUAD
)
*
(
1
<<
lpbmih
->
biBitCount
))
:
0
);
offset
=
sizeof
(
BITMAPINFOHEADER
)
+
((
lpbmih
->
biBitCount
<=
8
)
?
(
sizeof
(
RGBQUAD
)
*
(
1
<<
lpbmih
->
biBitCount
))
:
0
);
hData
=
CreateDIBitmap
(
hdc
,
lpbmih
,
CBM_INIT
,
(
LPBYTE
)
lpbmih
+
offset
,
(
LPBITMAPINFO
)
lpbmih
,
DIB_RGB_COLORS
);
hData
=
CreateDIBitmap
(
hdc
,
lpbmih
,
CBM_INIT
,
(
LPBYTE
)
lpbmih
+
offset
,
(
LPBITMAPINFO
)
lpbmih
,
DIB_RGB_COLORS
);
GlobalUnlock
(
lpSource
->
hData
);
GlobalUnlock
(
lpSource
->
hData
);
}
ReleaseDC
(
NULL
,
hdc
);
if
(
hData
)
...
...
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