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
b7219295
Commit
b7219295
authored
Mar 06, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Fix two test failures on Win98.
parent
4f65338a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
image.c
dlls/gdiplus/tests/image.c
+10
-4
No files found.
dlls/gdiplus/tests/image.c
View file @
b7219295
...
...
@@ -229,6 +229,7 @@ static void test_SavingImages(void)
const
REAL
WIDTH
=
10
.
0
,
HEIGHT
=
20
.
0
;
REAL
w
,
h
;
ImageCodecInfo
*
codecs
;
static
const
CHAR
filenameA
[]
=
"a.bmp"
;
static
const
WCHAR
filename
[]
=
{
'a'
,
'.'
,
'b'
,
'm'
,
'p'
,
0
};
codecs
=
NULL
;
...
...
@@ -280,7 +281,7 @@ static void test_SavingImages(void)
GdipFree
(
codecs
);
if
(
bm
)
GdipDisposeImage
((
GpImage
*
)
bm
);
ok
(
DeleteFile
W
(
filename
),
"Delete failed.
\n
"
);
ok
(
DeleteFile
A
(
filenameA
),
"Delete failed.
\n
"
);
}
static
void
test_encoders
(
void
)
...
...
@@ -292,7 +293,7 @@ static void test_encoders(void)
int
i
;
int
bmp_found
;
static
const
WCHAR
bmp_format
[]
=
{
'B'
,
'M'
,
'P'
,
0
}
;
static
const
CHAR
bmp_format
[]
=
"BMP"
;
stat
=
GdipGetImageEncodersSize
(
&
n
,
&
s
);
expect
(
stat
,
Ok
);
...
...
@@ -319,8 +320,13 @@ static void test_encoders(void)
bmp_found
=
FALSE
;
for
(
i
=
0
;
i
<
n
;
i
++
)
{
if
(
CompareStringW
(
LOCALE_SYSTEM_DEFAULT
,
0
,
codecs
[
i
].
FormatDescription
,
-
1
,
CHAR
desc
[
32
];
WideCharToMultiByte
(
CP_ACP
,
0
,
codecs
[
i
].
FormatDescription
,
-
1
,
desc
,
32
,
0
,
0
);
if
(
CompareStringA
(
LOCALE_SYSTEM_DEFAULT
,
0
,
desc
,
-
1
,
bmp_format
,
-
1
)
==
CSTR_EQUAL
)
{
bmp_found
=
TRUE
;
break
;
...
...
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