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
68eddac1
Commit
68eddac1
authored
Aug 15, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user/tests: Fix a compiler warning, and remove some useless casts.
parent
c6d95770
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
cursoricon.c
dlls/user/tests/cursoricon.c
+8
-8
No files found.
dlls/user/tests/cursoricon.c
View file @
68eddac1
...
...
@@ -29,8 +29,8 @@
#include "wingdi.h"
#include "winuser.h"
static
void
test_CopyImage_Check
(
HBITMAP
bitmap
,
UINT
flags
,
LONG
copyWidth
,
LONG
copyHeight
,
LONG
expectedWidth
,
LONG
expectedHeight
,
WORD
expectedDepth
,
BOOL
dibExpected
)
static
void
test_CopyImage_Check
(
HBITMAP
bitmap
,
UINT
flags
,
INT
copyWidth
,
INT
copyHeight
,
INT
expectedWidth
,
INT
expectedHeight
,
WORD
expectedDepth
,
BOOL
dibExpected
)
{
HBITMAP
copy
;
BITMAP
origBitmap
;
...
...
@@ -42,7 +42,7 @@ static void test_CopyImage_Check(HBITMAP bitmap, UINT flags, LONG copyWidth, LON
ok
(
copy
!=
NULL
,
"CopyImage() failed
\n
"
);
if
(
copy
!=
NULL
)
{
GetObject
(
bitmap
,
sizeof
(
origBitmap
),
&
origBitmap
)
!=
0
,
GetObject
(
bitmap
,
sizeof
(
origBitmap
),
&
origBitmap
)
;
GetObject
(
copy
,
sizeof
(
copyBitmap
),
&
copyBitmap
);
orig_is_dib
=
(
origBitmap
.
bmBits
!=
NULL
);
copy_is_dib
=
(
copyBitmap
.
bmBits
!=
NULL
);
...
...
@@ -72,11 +72,11 @@ static void test_CopyImage_Check(HBITMAP bitmap, UINT flags, LONG copyWidth, LON
&&
(
copyBitmap
.
bmWidth
==
expectedWidth
)
&&
(
copyBitmap
.
bmHeight
==
expectedHeight
)
&&
(
copyBitmap
.
bmBitsPixel
==
expectedDepth
)),
"CopyImage ((%s, %
ldx%ld, %u bpp), %ld, %ld, %#x): Expected (%s, %ldx%ld, %u bpp), got (%s, %ldx%l
d, %u bpp)
\n
"
,
orig_is_dib
?
"DIB"
:
"DDB"
,
(
long
)
origBitmap
.
bmWidth
,
(
long
)
origBitmap
.
bmHeight
,
(
unsigned
int
)
origBitmap
.
bmBitsPixel
,
(
long
)
copyWidth
,
(
long
)
copyHeight
,
(
unsigned
int
)
flags
,
dibExpected
?
"DIB"
:
"DDB"
,
(
long
)
expectedWidth
,
(
long
)
expectedHeight
,
(
unsigned
int
)
expectedDepth
,
copy_is_dib
?
"DIB"
:
"DDB"
,
(
long
)
copyBitmap
.
bmWidth
,
(
long
)
copyBitmap
.
bmHeight
,
(
unsigned
int
)
copyBitmap
.
bmBitsPixel
);
"CopyImage ((%s, %
dx%d, %u bpp), %d, %d, %#x): Expected (%s, %dx%d, %u bpp), got (%s, %dx%
d, %u bpp)
\n
"
,
orig_is_dib
?
"DIB"
:
"DDB"
,
origBitmap
.
bmWidth
,
origBitmap
.
bmHeight
,
origBitmap
.
bmBitsPixel
,
copyWidth
,
copyHeight
,
flags
,
dibExpected
?
"DIB"
:
"DDB"
,
expectedWidth
,
expectedHeight
,
expectedDepth
,
copy_is_dib
?
"DIB"
:
"DDB"
,
copyBitmap
.
bmWidth
,
copyBitmap
.
bmHeight
,
copyBitmap
.
bmBitsPixel
);
DeleteObject
(
copy
);
}
...
...
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