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
8d978814
Commit
8d978814
authored
Oct 01, 2010
by
Marko Nikolic
Committed by
Alexandre Julliard
Oct 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet/tests: Removed sign comparison warnings.
parent
4f78c04e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
48 deletions
+48
-48
fdi.c
dlls/cabinet/tests/fdi.c
+48
-48
No files found.
dlls/cabinet/tests/fdi.c
View file @
8d978814
...
...
@@ -100,106 +100,106 @@ static void test_FDICreate(void)
if
(
0
)
{
SetLastError
(
0xdeadbeef
);
erf
.
erfOper
=
0x
cafefe
ed
;
erf
.
erfType
=
0x
deadbabe
;
erf
.
fError
=
0x
decaface
;
erf
.
erfOper
=
0x
1abe11
ed
;
erf
.
erfType
=
0x
5eed1e55
;
erf
.
fError
=
0x
1ead1e55
;
hfdi
=
FDICreate
(
fdi_alloc
,
NULL
,
fdi_open
,
fdi_read
,
fdi_write
,
fdi_close
,
fdi_seek
,
cpuUNKNOWN
,
&
erf
);
ok
(
hfdi
!=
NULL
,
"Expected non-NULL context
\n
"
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
ok
(
erf
.
erfOper
==
0x
cafefeed
,
"Expected 0xcafefe
ed, got %d
\n
"
,
erf
.
erfOper
);
ok
(
erf
.
erfType
==
0x
deadbabe
,
"Expected 0xdeadbabe
, got %d
\n
"
,
erf
.
erfType
);
ok
(
erf
.
fError
==
0x
decaface
,
"Expected 0xdecaface
, got %d
\n
"
,
erf
.
fError
);
ok
(
erf
.
erfOper
==
0x
1abe11ed
,
"Expected 0x1abe11
ed, got %d
\n
"
,
erf
.
erfOper
);
ok
(
erf
.
erfType
==
0x
5eed1e55
,
"Expected 0x5eed1e55
, got %d
\n
"
,
erf
.
erfType
);
ok
(
erf
.
fError
==
0x
1ead1e55
,
"Expected 0x1ead1e55
, got %d
\n
"
,
erf
.
fError
);
FDIDestroy
(
hfdi
);
}
SetLastError
(
0xdeadbeef
);
erf
.
erfOper
=
0x
cafefe
ed
;
erf
.
erfType
=
0x
deadbabe
;
erf
.
fError
=
0x
decaface
;
erf
.
erfOper
=
0x
1abe11
ed
;
erf
.
erfType
=
0x
5eed1e55
;
erf
.
fError
=
0x
1ead1e55
;
hfdi
=
FDICreate
(
fdi_alloc
,
fdi_free
,
NULL
,
fdi_read
,
fdi_write
,
fdi_close
,
fdi_seek
,
cpuUNKNOWN
,
&
erf
);
ok
(
hfdi
!=
NULL
,
"Expected non-NULL context
\n
"
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
ok
((
erf
.
erfOper
==
0x
cafefeed
||
erf
.
erfOper
==
0
/* Vista */
),
"Expected 0xcafefe
ed or 0, got %d
\n
"
,
erf
.
erfOper
);
ok
((
erf
.
erfType
==
0x
deadbabe
||
erf
.
erfType
==
0
/* Vista */
),
"Expected 0xdeadbabe
or 0, got %d
\n
"
,
erf
.
erfType
);
ok
((
erf
.
fError
==
0x
decaface
||
erf
.
fError
==
0
/* Vista */
),
"Expected 0xdecaface
or 0, got %d
\n
"
,
erf
.
fError
);
ok
((
erf
.
erfOper
==
0x
1abe11ed
||
erf
.
erfOper
==
0
/* Vista */
),
"Expected 0x1abe11
ed or 0, got %d
\n
"
,
erf
.
erfOper
);
ok
((
erf
.
erfType
==
0x
5eed1e55
||
erf
.
erfType
==
0
/* Vista */
),
"Expected 0x5eed1e55
or 0, got %d
\n
"
,
erf
.
erfType
);
ok
((
erf
.
fError
==
0x
1ead1e55
||
erf
.
fError
==
0
/* Vista */
),
"Expected 0x1ead1e55
or 0, got %d
\n
"
,
erf
.
fError
);
FDIDestroy
(
hfdi
);
SetLastError
(
0xdeadbeef
);
erf
.
erfOper
=
0x
cafefe
ed
;
erf
.
erfType
=
0x
deadbabe
;
erf
.
fError
=
0x
decaface
;
erf
.
erfOper
=
0x
1abe11
ed
;
erf
.
erfType
=
0x
5eed1e55
;
erf
.
fError
=
0x
1ead1e55
;
hfdi
=
FDICreate
(
fdi_alloc
,
fdi_free
,
fdi_open
,
NULL
,
fdi_write
,
fdi_close
,
fdi_seek
,
cpuUNKNOWN
,
&
erf
);
ok
(
hfdi
!=
NULL
,
"Expected non-NULL context
\n
"
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
ok
((
erf
.
erfOper
==
0x
cafefeed
||
erf
.
erfOper
==
0
/* Vista */
),
"Expected 0xcafefe
ed or 0, got %d
\n
"
,
erf
.
erfOper
);
ok
((
erf
.
erfType
==
0x
deadbabe
||
erf
.
erfType
==
0
/* Vista */
),
"Expected 0xdeadbabe
or 0, got %d
\n
"
,
erf
.
erfType
);
ok
((
erf
.
fError
==
0x
decaface
||
erf
.
fError
==
0
/* Vista */
),
"Expected 0xdecaface
or 0, got %d
\n
"
,
erf
.
fError
);
ok
((
erf
.
erfOper
==
0x
1abe11ed
||
erf
.
erfOper
==
0
/* Vista */
),
"Expected 0x1abe11
ed or 0, got %d
\n
"
,
erf
.
erfOper
);
ok
((
erf
.
erfType
==
0x
5eed1e55
||
erf
.
erfType
==
0
/* Vista */
),
"Expected 0x5eed1e55
or 0, got %d
\n
"
,
erf
.
erfType
);
ok
((
erf
.
fError
==
0x
1ead1e55
||
erf
.
fError
==
0
/* Vista */
),
"Expected 0x1ead1e55
or 0, got %d
\n
"
,
erf
.
fError
);
FDIDestroy
(
hfdi
);
SetLastError
(
0xdeadbeef
);
erf
.
erfOper
=
0x
cafefe
ed
;
erf
.
erfType
=
0x
deadbabe
;
erf
.
fError
=
0x
decaface
;
erf
.
erfOper
=
0x
1abe11
ed
;
erf
.
erfType
=
0x
5eed1e55
;
erf
.
fError
=
0x
1ead1e55
;
hfdi
=
FDICreate
(
fdi_alloc
,
fdi_free
,
fdi_open
,
fdi_read
,
NULL
,
fdi_close
,
fdi_seek
,
cpuUNKNOWN
,
&
erf
);
ok
(
hfdi
!=
NULL
,
"Expected non-NULL context
\n
"
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
ok
((
erf
.
erfOper
==
0x
cafefeed
||
erf
.
erfOper
==
0
/* Vista */
),
"Expected 0xcafefe
ed or 0, got %d
\n
"
,
erf
.
erfOper
);
ok
((
erf
.
erfType
==
0x
deadbabe
||
erf
.
erfType
==
0
/* Vista */
),
"Expected 0xdeadbabe
or 0, got %d
\n
"
,
erf
.
erfType
);
ok
((
erf
.
fError
==
0x
decaface
||
erf
.
fError
==
0
/* Vista */
),
"Expected 0xdecaface
or 0, got %d
\n
"
,
erf
.
fError
);
ok
((
erf
.
erfOper
==
0x
1abe11ed
||
erf
.
erfOper
==
0
/* Vista */
),
"Expected 0x1abe11
ed or 0, got %d
\n
"
,
erf
.
erfOper
);
ok
((
erf
.
erfType
==
0x
5eed1e55
||
erf
.
erfType
==
0
/* Vista */
),
"Expected 0x5eed1e55
or 0, got %d
\n
"
,
erf
.
erfType
);
ok
((
erf
.
fError
==
0x
1ead1e55
||
erf
.
fError
==
0
/* Vista */
),
"Expected 0x1ead1e55
or 0, got %d
\n
"
,
erf
.
fError
);
FDIDestroy
(
hfdi
);
SetLastError
(
0xdeadbeef
);
erf
.
erfOper
=
0x
cafefe
ed
;
erf
.
erfType
=
0x
deadbabe
;
erf
.
fError
=
0x
decaface
;
erf
.
erfOper
=
0x
1abe11
ed
;
erf
.
erfType
=
0x
5eed1e55
;
erf
.
fError
=
0x
1ead1e55
;
hfdi
=
FDICreate
(
fdi_alloc
,
fdi_free
,
fdi_open
,
fdi_read
,
fdi_write
,
NULL
,
fdi_seek
,
cpuUNKNOWN
,
&
erf
);
ok
(
hfdi
!=
NULL
,
"Expected non-NULL context
\n
"
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
ok
((
erf
.
erfOper
==
0x
cafefeed
||
erf
.
erfOper
==
0
/* Vista */
),
"Expected 0xcafefe
ed or 0, got %d
\n
"
,
erf
.
erfOper
);
ok
((
erf
.
erfType
==
0x
deadbabe
||
erf
.
erfType
==
0
/* Vista */
),
"Expected 0xdeadbabe
or 0, got %d
\n
"
,
erf
.
erfType
);
ok
((
erf
.
fError
==
0x
decaface
||
erf
.
fError
==
0
/* Vista */
),
"Expected 0xdecaface
or 0, got %d
\n
"
,
erf
.
fError
);
ok
((
erf
.
erfOper
==
0x
1abe11ed
||
erf
.
erfOper
==
0
/* Vista */
),
"Expected 0x1abe11
ed or 0, got %d
\n
"
,
erf
.
erfOper
);
ok
((
erf
.
erfType
==
0x
5eed1e55
||
erf
.
erfType
==
0
/* Vista */
),
"Expected 0x5eed1e55
or 0, got %d
\n
"
,
erf
.
erfType
);
ok
((
erf
.
fError
==
0x
1ead1e55
||
erf
.
fError
==
0
/* Vista */
),
"Expected 0x1ead1e55
or 0, got %d
\n
"
,
erf
.
fError
);
FDIDestroy
(
hfdi
);
SetLastError
(
0xdeadbeef
);
erf
.
erfOper
=
0x
cafefe
ed
;
erf
.
erfType
=
0x
deadbabe
;
erf
.
fError
=
0x
decaface
;
erf
.
erfOper
=
0x
1abe11
ed
;
erf
.
erfType
=
0x
5eed1e55
;
erf
.
fError
=
0x
1ead1e55
;
hfdi
=
FDICreate
(
fdi_alloc
,
fdi_free
,
fdi_open
,
fdi_read
,
fdi_write
,
fdi_close
,
NULL
,
cpuUNKNOWN
,
&
erf
);
ok
(
hfdi
!=
NULL
,
"Expected non-NULL context
\n
"
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
ok
((
erf
.
erfOper
==
0x
cafefeed
||
erf
.
erfOper
==
0
/* Vista */
),
"Expected 0xcafefe
ed or 0, got %d
\n
"
,
erf
.
erfOper
);
ok
((
erf
.
erfType
==
0x
deadbabe
||
erf
.
erfType
==
0
/* Vista */
),
"Expected 0xdeadbabe
or 0, got %d
\n
"
,
erf
.
erfType
);
ok
((
erf
.
fError
==
0x
decaface
||
erf
.
fError
==
0
/* Vista */
),
"Expected 0xdecaface
or 0, got %d
\n
"
,
erf
.
fError
);
ok
((
erf
.
erfOper
==
0x
1abe11ed
||
erf
.
erfOper
==
0
/* Vista */
),
"Expected 0x1abe11
ed or 0, got %d
\n
"
,
erf
.
erfOper
);
ok
((
erf
.
erfType
==
0x
5eed1e55
||
erf
.
erfType
==
0
/* Vista */
),
"Expected 0x5eed1e55
or 0, got %d
\n
"
,
erf
.
erfType
);
ok
((
erf
.
fError
==
0x
1ead1e55
||
erf
.
fError
==
0
/* Vista */
),
"Expected 0x1ead1e55
or 0, got %d
\n
"
,
erf
.
fError
);
FDIDestroy
(
hfdi
);
SetLastError
(
0xdeadbeef
);
erf
.
erfOper
=
0x
cafefe
ed
;
erf
.
erfType
=
0x
deadbabe
;
erf
.
fError
=
0x
decaface
;
erf
.
erfOper
=
0x
1abe11
ed
;
erf
.
erfType
=
0x
5eed1e55
;
erf
.
fError
=
0x
1ead1e55
;
hfdi
=
FDICreate
(
fdi_alloc
,
fdi_free
,
fdi_open
,
fdi_read
,
fdi_write
,
fdi_close
,
fdi_seek
,
cpuUNKNOWN
,
NULL
);
...
...
@@ -212,26 +212,26 @@ static void test_FDICreate(void)
/* bad cpu type */
SetLastError
(
0xdeadbeef
);
erf
.
erfOper
=
0x
cafefe
ed
;
erf
.
erfType
=
0x
deadbabe
;
erf
.
fError
=
0x
decaface
;
erf
.
erfOper
=
0x
1abe11
ed
;
erf
.
erfType
=
0x
5eed1e55
;
erf
.
fError
=
0x
1ead1e55
;
hfdi
=
FDICreate
(
fdi_alloc
,
fdi_free
,
fdi_open
,
fdi_read
,
fdi_write
,
fdi_close
,
fdi_seek
,
0xcafebabe
,
&
erf
);
ok
(
hfdi
!=
NULL
,
"Expected non-NULL context
\n
"
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
ok
((
erf
.
erfOper
==
0x
cafefeed
||
erf
.
erfOper
==
0
/* Vista */
),
"Expected 0xcafefe
ed or 0, got %d
\n
"
,
erf
.
erfOper
);
ok
((
erf
.
erfType
==
0x
deadbabe
||
erf
.
erfType
==
0
/* Vista */
),
"Expected 0xdeadbabe
or 0, got %d
\n
"
,
erf
.
erfType
);
ok
((
erf
.
fError
==
0x
decaface
||
erf
.
fError
==
0
/* Vista */
),
"Expected 0xdecaface
or 0, got %d
\n
"
,
erf
.
fError
);
ok
((
erf
.
erfOper
==
0x
1abe11ed
||
erf
.
erfOper
==
0
/* Vista */
),
"Expected 0x1abe11
ed or 0, got %d
\n
"
,
erf
.
erfOper
);
ok
((
erf
.
erfType
==
0x
5eed1e55
||
erf
.
erfType
==
0
/* Vista */
),
"Expected 0x5eed1e55
or 0, got %d
\n
"
,
erf
.
erfType
);
ok
((
erf
.
fError
==
0x
1ead1e55
||
erf
.
fError
==
0
/* Vista */
),
"Expected 0x1ead1e55
or 0, got %d
\n
"
,
erf
.
fError
);
FDIDestroy
(
hfdi
);
/* pfnalloc fails */
SetLastError
(
0xdeadbeef
);
erf
.
erfOper
=
0x
cafefe
ed
;
erf
.
erfType
=
0x
deadbabe
;
erf
.
fError
=
0x
decaface
;
erf
.
erfOper
=
0x
1abe11
ed
;
erf
.
erfType
=
0x
5eed1e55
;
erf
.
fError
=
0x
1ead1e55
;
hfdi
=
FDICreate
(
fdi_alloc_bad
,
fdi_free
,
fdi_open
,
fdi_read
,
fdi_write
,
fdi_close
,
fdi_seek
,
cpuUNKNOWN
,
&
erf
);
...
...
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