Commit 8d978814 authored by Marko Nikolic's avatar Marko Nikolic Committed by Alexandre Julliard

cabinet/tests: Removed sign comparison warnings.

parent 4f78c04e
...@@ -100,106 +100,106 @@ static void test_FDICreate(void) ...@@ -100,106 +100,106 @@ static void test_FDICreate(void)
if (0) if (0)
{ {
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
erf.erfOper = 0xcafefeed; erf.erfOper = 0x1abe11ed;
erf.erfType = 0xdeadbabe; erf.erfType = 0x5eed1e55;
erf.fError = 0xdecaface; erf.fError = 0x1ead1e55;
hfdi = FDICreate(fdi_alloc, NULL, fdi_open, fdi_read, hfdi = FDICreate(fdi_alloc, NULL, fdi_open, fdi_read,
fdi_write, fdi_close, fdi_seek, fdi_write, fdi_close, fdi_seek,
cpuUNKNOWN, &erf); cpuUNKNOWN, &erf);
ok(hfdi != NULL, "Expected non-NULL context\n"); ok(hfdi != NULL, "Expected non-NULL context\n");
ok(GetLastError() == 0xdeadbeef, ok(GetLastError() == 0xdeadbeef,
"Expected 0xdeadbeef, got %d\n", GetLastError()); "Expected 0xdeadbeef, got %d\n", GetLastError());
ok(erf.erfOper == 0xcafefeed, "Expected 0xcafefeed, got %d\n", erf.erfOper); ok(erf.erfOper == 0x1abe11ed, "Expected 0x1abe11ed, got %d\n", erf.erfOper);
ok(erf.erfType == 0xdeadbabe, "Expected 0xdeadbabe, got %d\n", erf.erfType); ok(erf.erfType == 0x5eed1e55, "Expected 0x5eed1e55, got %d\n", erf.erfType);
ok(erf.fError == 0xdecaface, "Expected 0xdecaface, got %d\n", erf.fError); ok(erf.fError == 0x1ead1e55, "Expected 0x1ead1e55, got %d\n", erf.fError);
FDIDestroy(hfdi); FDIDestroy(hfdi);
} }
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
erf.erfOper = 0xcafefeed; erf.erfOper = 0x1abe11ed;
erf.erfType = 0xdeadbabe; erf.erfType = 0x5eed1e55;
erf.fError = 0xdecaface; erf.fError = 0x1ead1e55;
hfdi = FDICreate(fdi_alloc, fdi_free, NULL, fdi_read, hfdi = FDICreate(fdi_alloc, fdi_free, NULL, fdi_read,
fdi_write, fdi_close, fdi_seek, fdi_write, fdi_close, fdi_seek,
cpuUNKNOWN, &erf); cpuUNKNOWN, &erf);
ok(hfdi != NULL, "Expected non-NULL context\n"); ok(hfdi != NULL, "Expected non-NULL context\n");
ok(GetLastError() == 0xdeadbeef, ok(GetLastError() == 0xdeadbeef,
"Expected 0xdeadbeef, got %d\n", GetLastError()); "Expected 0xdeadbeef, got %d\n", GetLastError());
ok((erf.erfOper == 0xcafefeed || erf.erfOper == 0 /* Vista */), "Expected 0xcafefeed or 0, got %d\n", erf.erfOper); ok((erf.erfOper == 0x1abe11ed || erf.erfOper == 0 /* Vista */), "Expected 0x1abe11ed or 0, got %d\n", erf.erfOper);
ok((erf.erfType == 0xdeadbabe || erf.erfType == 0 /* Vista */), "Expected 0xdeadbabe or 0, got %d\n", erf.erfType); ok((erf.erfType == 0x5eed1e55 || erf.erfType == 0 /* Vista */), "Expected 0x5eed1e55 or 0, got %d\n", erf.erfType);
ok((erf.fError == 0xdecaface || erf.fError == 0 /* Vista */), "Expected 0xdecaface or 0, got %d\n", erf.fError); ok((erf.fError == 0x1ead1e55 || erf.fError == 0 /* Vista */), "Expected 0x1ead1e55 or 0, got %d\n", erf.fError);
FDIDestroy(hfdi); FDIDestroy(hfdi);
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
erf.erfOper = 0xcafefeed; erf.erfOper = 0x1abe11ed;
erf.erfType = 0xdeadbabe; erf.erfType = 0x5eed1e55;
erf.fError = 0xdecaface; erf.fError = 0x1ead1e55;
hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, NULL, hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, NULL,
fdi_write, fdi_close, fdi_seek, fdi_write, fdi_close, fdi_seek,
cpuUNKNOWN, &erf); cpuUNKNOWN, &erf);
ok(hfdi != NULL, "Expected non-NULL context\n"); ok(hfdi != NULL, "Expected non-NULL context\n");
ok(GetLastError() == 0xdeadbeef, ok(GetLastError() == 0xdeadbeef,
"Expected 0xdeadbeef, got %d\n", GetLastError()); "Expected 0xdeadbeef, got %d\n", GetLastError());
ok((erf.erfOper == 0xcafefeed || erf.erfOper == 0 /* Vista */), "Expected 0xcafefeed or 0, got %d\n", erf.erfOper); ok((erf.erfOper == 0x1abe11ed || erf.erfOper == 0 /* Vista */), "Expected 0x1abe11ed or 0, got %d\n", erf.erfOper);
ok((erf.erfType == 0xdeadbabe || erf.erfType == 0 /* Vista */), "Expected 0xdeadbabe or 0, got %d\n", erf.erfType); ok((erf.erfType == 0x5eed1e55 || erf.erfType == 0 /* Vista */), "Expected 0x5eed1e55 or 0, got %d\n", erf.erfType);
ok((erf.fError == 0xdecaface || erf.fError == 0 /* Vista */), "Expected 0xdecaface or 0, got %d\n", erf.fError); ok((erf.fError == 0x1ead1e55 || erf.fError == 0 /* Vista */), "Expected 0x1ead1e55 or 0, got %d\n", erf.fError);
FDIDestroy(hfdi); FDIDestroy(hfdi);
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
erf.erfOper = 0xcafefeed; erf.erfOper = 0x1abe11ed;
erf.erfType = 0xdeadbabe; erf.erfType = 0x5eed1e55;
erf.fError = 0xdecaface; erf.fError = 0x1ead1e55;
hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, fdi_read, hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, fdi_read,
NULL, fdi_close, fdi_seek, NULL, fdi_close, fdi_seek,
cpuUNKNOWN, &erf); cpuUNKNOWN, &erf);
ok(hfdi != NULL, "Expected non-NULL context\n"); ok(hfdi != NULL, "Expected non-NULL context\n");
ok(GetLastError() == 0xdeadbeef, ok(GetLastError() == 0xdeadbeef,
"Expected 0xdeadbeef, got %d\n", GetLastError()); "Expected 0xdeadbeef, got %d\n", GetLastError());
ok((erf.erfOper == 0xcafefeed || erf.erfOper == 0 /* Vista */), "Expected 0xcafefeed or 0, got %d\n", erf.erfOper); ok((erf.erfOper == 0x1abe11ed || erf.erfOper == 0 /* Vista */), "Expected 0x1abe11ed or 0, got %d\n", erf.erfOper);
ok((erf.erfType == 0xdeadbabe || erf.erfType == 0 /* Vista */), "Expected 0xdeadbabe or 0, got %d\n", erf.erfType); ok((erf.erfType == 0x5eed1e55 || erf.erfType == 0 /* Vista */), "Expected 0x5eed1e55 or 0, got %d\n", erf.erfType);
ok((erf.fError == 0xdecaface || erf.fError == 0 /* Vista */), "Expected 0xdecaface or 0, got %d\n", erf.fError); ok((erf.fError == 0x1ead1e55 || erf.fError == 0 /* Vista */), "Expected 0x1ead1e55 or 0, got %d\n", erf.fError);
FDIDestroy(hfdi); FDIDestroy(hfdi);
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
erf.erfOper = 0xcafefeed; erf.erfOper = 0x1abe11ed;
erf.erfType = 0xdeadbabe; erf.erfType = 0x5eed1e55;
erf.fError = 0xdecaface; erf.fError = 0x1ead1e55;
hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, fdi_read, hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, fdi_read,
fdi_write, NULL, fdi_seek, fdi_write, NULL, fdi_seek,
cpuUNKNOWN, &erf); cpuUNKNOWN, &erf);
ok(hfdi != NULL, "Expected non-NULL context\n"); ok(hfdi != NULL, "Expected non-NULL context\n");
ok(GetLastError() == 0xdeadbeef, ok(GetLastError() == 0xdeadbeef,
"Expected 0xdeadbeef, got %d\n", GetLastError()); "Expected 0xdeadbeef, got %d\n", GetLastError());
ok((erf.erfOper == 0xcafefeed || erf.erfOper == 0 /* Vista */), "Expected 0xcafefeed or 0, got %d\n", erf.erfOper); ok((erf.erfOper == 0x1abe11ed || erf.erfOper == 0 /* Vista */), "Expected 0x1abe11ed or 0, got %d\n", erf.erfOper);
ok((erf.erfType == 0xdeadbabe || erf.erfType == 0 /* Vista */), "Expected 0xdeadbabe or 0, got %d\n", erf.erfType); ok((erf.erfType == 0x5eed1e55 || erf.erfType == 0 /* Vista */), "Expected 0x5eed1e55 or 0, got %d\n", erf.erfType);
ok((erf.fError == 0xdecaface || erf.fError == 0 /* Vista */), "Expected 0xdecaface or 0, got %d\n", erf.fError); ok((erf.fError == 0x1ead1e55 || erf.fError == 0 /* Vista */), "Expected 0x1ead1e55 or 0, got %d\n", erf.fError);
FDIDestroy(hfdi); FDIDestroy(hfdi);
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
erf.erfOper = 0xcafefeed; erf.erfOper = 0x1abe11ed;
erf.erfType = 0xdeadbabe; erf.erfType = 0x5eed1e55;
erf.fError = 0xdecaface; erf.fError = 0x1ead1e55;
hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, fdi_read, hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, fdi_read,
fdi_write, fdi_close, NULL, fdi_write, fdi_close, NULL,
cpuUNKNOWN, &erf); cpuUNKNOWN, &erf);
ok(hfdi != NULL, "Expected non-NULL context\n"); ok(hfdi != NULL, "Expected non-NULL context\n");
ok(GetLastError() == 0xdeadbeef, ok(GetLastError() == 0xdeadbeef,
"Expected 0xdeadbeef, got %d\n", GetLastError()); "Expected 0xdeadbeef, got %d\n", GetLastError());
ok((erf.erfOper == 0xcafefeed || erf.erfOper == 0 /* Vista */), "Expected 0xcafefeed or 0, got %d\n", erf.erfOper); ok((erf.erfOper == 0x1abe11ed || erf.erfOper == 0 /* Vista */), "Expected 0x1abe11ed or 0, got %d\n", erf.erfOper);
ok((erf.erfType == 0xdeadbabe || erf.erfType == 0 /* Vista */), "Expected 0xdeadbabe or 0, got %d\n", erf.erfType); ok((erf.erfType == 0x5eed1e55 || erf.erfType == 0 /* Vista */), "Expected 0x5eed1e55 or 0, got %d\n", erf.erfType);
ok((erf.fError == 0xdecaface || erf.fError == 0 /* Vista */), "Expected 0xdecaface or 0, got %d\n", erf.fError); ok((erf.fError == 0x1ead1e55 || erf.fError == 0 /* Vista */), "Expected 0x1ead1e55 or 0, got %d\n", erf.fError);
FDIDestroy(hfdi); FDIDestroy(hfdi);
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
erf.erfOper = 0xcafefeed; erf.erfOper = 0x1abe11ed;
erf.erfType = 0xdeadbabe; erf.erfType = 0x5eed1e55;
erf.fError = 0xdecaface; erf.fError = 0x1ead1e55;
hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, fdi_read, hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, fdi_read,
fdi_write, fdi_close, fdi_seek, fdi_write, fdi_close, fdi_seek,
cpuUNKNOWN, NULL); cpuUNKNOWN, NULL);
...@@ -212,26 +212,26 @@ static void test_FDICreate(void) ...@@ -212,26 +212,26 @@ static void test_FDICreate(void)
/* bad cpu type */ /* bad cpu type */
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
erf.erfOper = 0xcafefeed; erf.erfOper = 0x1abe11ed;
erf.erfType = 0xdeadbabe; erf.erfType = 0x5eed1e55;
erf.fError = 0xdecaface; erf.fError = 0x1ead1e55;
hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, fdi_read, hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, fdi_read,
fdi_write, fdi_close, fdi_seek, fdi_write, fdi_close, fdi_seek,
0xcafebabe, &erf); 0xcafebabe, &erf);
ok(hfdi != NULL, "Expected non-NULL context\n"); ok(hfdi != NULL, "Expected non-NULL context\n");
ok(GetLastError() == 0xdeadbeef, ok(GetLastError() == 0xdeadbeef,
"Expected 0xdeadbeef, got %d\n", GetLastError()); "Expected 0xdeadbeef, got %d\n", GetLastError());
ok((erf.erfOper == 0xcafefeed || erf.erfOper == 0 /* Vista */), "Expected 0xcafefeed or 0, got %d\n", erf.erfOper); ok((erf.erfOper == 0x1abe11ed || erf.erfOper == 0 /* Vista */), "Expected 0x1abe11ed or 0, got %d\n", erf.erfOper);
ok((erf.erfType == 0xdeadbabe || erf.erfType == 0 /* Vista */), "Expected 0xdeadbabe or 0, got %d\n", erf.erfType); ok((erf.erfType == 0x5eed1e55 || erf.erfType == 0 /* Vista */), "Expected 0x5eed1e55 or 0, got %d\n", erf.erfType);
ok((erf.fError == 0xdecaface || erf.fError == 0 /* Vista */), "Expected 0xdecaface or 0, got %d\n", erf.fError); ok((erf.fError == 0x1ead1e55 || erf.fError == 0 /* Vista */), "Expected 0x1ead1e55 or 0, got %d\n", erf.fError);
FDIDestroy(hfdi); FDIDestroy(hfdi);
/* pfnalloc fails */ /* pfnalloc fails */
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
erf.erfOper = 0xcafefeed; erf.erfOper = 0x1abe11ed;
erf.erfType = 0xdeadbabe; erf.erfType = 0x5eed1e55;
erf.fError = 0xdecaface; erf.fError = 0x1ead1e55;
hfdi = FDICreate(fdi_alloc_bad, fdi_free, fdi_open, fdi_read, hfdi = FDICreate(fdi_alloc_bad, fdi_free, fdi_open, fdi_read,
fdi_write, fdi_close, fdi_seek, fdi_write, fdi_close, fdi_seek,
cpuUNKNOWN, &erf); cpuUNKNOWN, &erf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment