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
decb70d9
Commit
decb70d9
authored
Nov 13, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Nov 13, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Fix a few failures on Win9x and WinMe.
parent
09c6caea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
metafile.c
dlls/gdi32/tests/metafile.c
+15
-5
No files found.
dlls/gdi32/tests/metafile.c
View file @
decb70d9
...
@@ -2119,7 +2119,9 @@ static void test_SetEnhMetaFileBits(void)
...
@@ -2119,7 +2119,9 @@ static void test_SetEnhMetaFileBits(void)
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
hemf
=
SetEnhMetaFileBits
(
sizeof
(
data
),
data
);
hemf
=
SetEnhMetaFileBits
(
sizeof
(
data
),
data
);
ok
(
!
hemf
,
"SetEnhMetaFileBits should fail
\n
"
);
ok
(
!
hemf
,
"SetEnhMetaFileBits should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_DATA
,
"expected ERROR_INVALID_DATA, got %u
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_INVALID_DATA
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
/* Win9x, WinMe */
"expected ERROR_INVALID_DATA or ERROR_INVALID_PARAMETER, got %u
\n
"
,
GetLastError
());
emh
=
(
ENHMETAHEADER
*
)
data
;
emh
=
(
ENHMETAHEADER
*
)
data
;
memset
(
emh
,
0
,
sizeof
(
*
emh
));
memset
(
emh
,
0
,
sizeof
(
*
emh
));
...
@@ -2141,15 +2143,23 @@ static void test_SetEnhMetaFileBits(void)
...
@@ -2141,15 +2143,23 @@ static void test_SetEnhMetaFileBits(void)
emh
->
nBytes
++
;
emh
->
nBytes
++
;
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
hemf
=
SetEnhMetaFileBits
(
emh
->
nBytes
,
data
);
hemf
=
SetEnhMetaFileBits
(
emh
->
nBytes
,
data
);
ok
(
!
hemf
,
"SetEnhMetaFileBits should fail
\n
"
);
ok
(
!
hemf
||
/* XP doesn't set error in this case */
broken
(
hemf
!=
NULL
),
/* Win9x, WinMe */
"SetEnhMetaFileBits should fail
\n
"
);
todo_wine
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected deadbeef, got %u
\n
"
,
GetLastError
());
DeleteEnhMetaFile
(
hemf
);
emh
->
dSignature
=
0
;
emh
->
dSignature
=
0
;
emh
->
nBytes
--
;
emh
->
nBytes
--
;
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
hemf
=
SetEnhMetaFileBits
(
emh
->
nBytes
,
data
);
hemf
=
SetEnhMetaFileBits
(
emh
->
nBytes
,
data
);
ok
(
!
hemf
,
"SetEnhMetaFileBits should fail
\n
"
);
ok
(
!
hemf
||
/* XP doesn't set error in this case */
broken
(
hemf
!=
NULL
),
/* Win9x, WinMe */
"SetEnhMetaFileBits should fail
\n
"
);
todo_wine
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected deadbeef, got %u
\n
"
,
GetLastError
());
DeleteEnhMetaFile
(
hemf
);
}
}
START_TEST
(
metafile
)
START_TEST
(
metafile
)
...
...
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