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
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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
image.c
dlls/gdiplus/image.c
+1
-2
image.c
dlls/gdiplus/tests/image.c
+0
-2
No files found.
dlls/gdiplus/image.c
View file @
e3f8f30a
...
@@ -114,8 +114,7 @@ GpStatus WINGDIPAPI GdipBitmapLockBits(GpBitmap* bitmap, GDIPCONST GpRect* rect,
...
@@ -114,8 +114,7 @@ GpStatus WINGDIPAPI GdipBitmapLockBits(GpBitmap* bitmap, GDIPCONST GpRect* rect,
if
(
flags
&
ImageLockModeUserInputBuf
)
if
(
flags
&
ImageLockModeUserInputBuf
)
return
NotImplemented
;
return
NotImplemented
;
if
((
bitmap
->
lockmode
&
ImageLockModeWrite
)
||
(
bitmap
->
lockmode
&&
if
(
bitmap
->
lockmode
)
(
flags
&
ImageLockModeWrite
)))
return
WrongState
;
return
WrongState
;
IPicture_get_Handle
(
bitmap
->
image
.
picture
,
&
hbm
);
IPicture_get_Handle
(
bitmap
->
image
.
picture
,
&
hbm
);
...
...
dlls/gdiplus/tests/image.c
View file @
e3f8f30a
...
@@ -214,10 +214,8 @@ static void test_LockBits(void)
...
@@ -214,10 +214,8 @@ static void test_LockBits(void)
/* read x2 */
/* read x2 */
stat
=
GdipBitmapLockBits
(
bm
,
&
rect
,
ImageLockModeRead
,
PixelFormat24bppRGB
,
&
bd
);
stat
=
GdipBitmapLockBits
(
bm
,
&
rect
,
ImageLockModeRead
,
PixelFormat24bppRGB
,
&
bd
);
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
todo_wine
{
stat
=
GdipBitmapLockBits
(
bm
,
&
rect
,
ImageLockModeRead
,
PixelFormat24bppRGB
,
&
bd
);
stat
=
GdipBitmapLockBits
(
bm
,
&
rect
,
ImageLockModeRead
,
PixelFormat24bppRGB
,
&
bd
);
expect
(
WrongState
,
stat
);
expect
(
WrongState
,
stat
);
}
stat
=
GdipBitmapUnlockBits
(
bm
,
&
bd
);
stat
=
GdipBitmapUnlockBits
(
bm
,
&
bd
);
expect
(
Ok
,
stat
);
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