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
e6f16250
Commit
e6f16250
authored
Mar 21, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi: Fix a couple of todos in the bitmap test.
parent
5df3e572
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
bitmap.c
dlls/gdi/bitmap.c
+7
-8
gdiobj.c
dlls/gdi/tests/gdiobj.c
+0
-4
No files found.
dlls/gdi/bitmap.c
View file @
e6f16250
...
...
@@ -653,9 +653,9 @@ static INT BITMAP_GetObject16( HGDIOBJ handle, void *obj, INT count, LPVOID buff
bmp16
.
bmPlanes
=
bmp
->
bitmap
.
bmPlanes
;
bmp16
.
bmBitsPixel
=
bmp
->
bitmap
.
bmBitsPixel
;
bmp16
.
bmBits
=
(
SEGPTR
)
0
;
if
(
count
>
sizeof
(
bmp16
))
count
=
sizeof
(
bmp16
)
;
memcpy
(
buffer
,
&
bmp16
,
count
);
return
count
;
if
(
count
<
sizeof
(
bmp16
))
return
0
;
memcpy
(
buffer
,
&
bmp16
,
sizeof
(
bmp16
)
);
return
sizeof
(
bmp16
)
;
}
}
...
...
@@ -685,11 +685,10 @@ static INT BITMAP_GetObject( HGDIOBJ handle, void *obj, INT count, LPVOID buffer
}
else
{
if
(
!
buffer
)
return
sizeof
(
BITMAP
);
if
(
count
>
sizeof
(
BITMAP
))
count
=
sizeof
(
BITMAP
);
memcpy
(
buffer
,
&
bmp
->
bitmap
,
count
);
return
count
;
if
(
!
buffer
)
return
sizeof
(
BITMAP
);
if
(
count
<
sizeof
(
BITMAP
))
return
0
;
memcpy
(
buffer
,
&
bmp
->
bitmap
,
sizeof
(
BITMAP
)
);
return
sizeof
(
BITMAP
);
}
}
...
...
dlls/gdi/tests/gdiobj.c
View file @
e6f16250
...
...
@@ -1044,17 +1044,13 @@ static void test_bitmap(void)
ok
(
ret
==
sizeof
(
bm
),
"%d != %d
\n
"
,
ret
,
sizeof
(
bm
));
ret
=
GetObject
(
hbmp
,
sizeof
(
bm
)
/
2
,
&
bm
);
todo_wine
{
ok
(
ret
==
0
,
"%d != 0
\n
"
,
ret
);
}
ret
=
GetObject
(
hbmp
,
0
,
&
bm
);
ok
(
ret
==
0
,
"%d != 0
\n
"
,
ret
);
ret
=
GetObject
(
hbmp
,
1
,
&
bm
);
todo_wine
{
ok
(
ret
==
0
,
"%d != 0
\n
"
,
ret
);
}
DeleteObject
(
hbmp
);
DeleteDC
(
hdc
);
...
...
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