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
e3f8f30a
Commit
e3f8f30a
authored
Mar 07, 2008
by
Nathan Beckmann
Committed by
Alexandre Julliard
Mar 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Return an error for consecutive GdipLockBitmapBit calls.
parent
eabc62db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
image.c
dlls/gdiplus/image.c
+1
-2
image.c
dlls/gdiplus/tests/image.c
+2
-4
No files found.
dlls/gdiplus/image.c
View file @
e3f8f30a
...
...
@@ -114,8 +114,7 @@ GpStatus WINGDIPAPI GdipBitmapLockBits(GpBitmap* bitmap, GDIPCONST GpRect* rect,
if
(
flags
&
ImageLockModeUserInputBuf
)
return
NotImplemented
;
if
((
bitmap
->
lockmode
&
ImageLockModeWrite
)
||
(
bitmap
->
lockmode
&&
(
flags
&
ImageLockModeWrite
)))
if
(
bitmap
->
lockmode
)
return
WrongState
;
IPicture_get_Handle
(
bitmap
->
image
.
picture
,
&
hbm
);
...
...
dlls/gdiplus/tests/image.c
View file @
e3f8f30a
...
...
@@ -214,10 +214,8 @@ static void test_LockBits(void)
/* read x2 */
stat
=
GdipBitmapLockBits
(
bm
,
&
rect
,
ImageLockModeRead
,
PixelFormat24bppRGB
,
&
bd
);
expect
(
Ok
,
stat
);
todo_wine
{
stat
=
GdipBitmapLockBits
(
bm
,
&
rect
,
ImageLockModeRead
,
PixelFormat24bppRGB
,
&
bd
);
expect
(
WrongState
,
stat
);
}
stat
=
GdipBitmapLockBits
(
bm
,
&
rect
,
ImageLockModeRead
,
PixelFormat24bppRGB
,
&
bd
);
expect
(
WrongState
,
stat
);
stat
=
GdipBitmapUnlockBits
(
bm
,
&
bd
);
expect
(
Ok
,
stat
);
...
...
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