mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 17:01:28 +00:00
[WINSPOOL_APITEST]
GetPrintProcessorDirectory.c: fix 4 error messages (s/cbNeeded/cbTemp/). By Serge Gautherie svn path=/trunk/; revision=73248
This commit is contained in:
parent
5fd4223870
commit
e12ad8d673
|
@ -46,13 +46,13 @@ START_TEST(GetPrintProcessorDirectoryA)
|
|||
SetLastError(0xDEADBEEF);
|
||||
ok(!GetPrintProcessorDirectoryA(NULL, NULL, 1, NULL, cbNeeded, &cbTemp), "GetPrintProcessorDirectoryA returns TRUE!\n");
|
||||
ok(GetLastError() == ERROR_INVALID_USER_BUFFER, "GetPrintProcessorDirectoryA returns error %lu!\n", GetLastError());
|
||||
ok(cbTemp == 0, "cbNeeded is %lu!\n", cbNeeded);
|
||||
ok(cbTemp == 0, "cbTemp is %lu!\n", cbTemp);
|
||||
|
||||
// Same error has to occur with a size too small.
|
||||
SetLastError(0xDEADBEEF);
|
||||
ok(!GetPrintProcessorDirectoryA(NULL, NULL, 1, NULL, 1, &cbTemp), "GetPrintProcessorDirectoryA returns TRUE!\n");
|
||||
ok(GetLastError() == ERROR_INVALID_USER_BUFFER, "GetPrintProcessorDirectoryA returns error %lu!\n", GetLastError());
|
||||
ok(cbTemp == 0, "cbNeeded is %lu!\n", cbNeeded);
|
||||
ok(cbTemp == 0, "cbTemp is %lu!\n", cbTemp);
|
||||
|
||||
// Finally use the function as intended and aim for success!
|
||||
pszBuffer = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, cbNeeded);
|
||||
|
@ -97,13 +97,13 @@ START_TEST(GetPrintProcessorDirectoryW)
|
|||
SetLastError(0xDEADBEEF);
|
||||
ok(!GetPrintProcessorDirectoryW(NULL, NULL, 1, NULL, cbNeeded, &cbTemp), "GetPrintProcessorDirectoryW returns TRUE!\n");
|
||||
ok(GetLastError() == ERROR_INVALID_USER_BUFFER, "GetPrintProcessorDirectoryW returns error %lu!\n", GetLastError());
|
||||
ok(cbTemp == 0, "cbNeeded is %lu!\n", cbNeeded);
|
||||
ok(cbTemp == 0, "cbTemp is %lu!\n", cbTemp);
|
||||
|
||||
// Same error has to occur with a size too small.
|
||||
SetLastError(0xDEADBEEF);
|
||||
ok(!GetPrintProcessorDirectoryW(NULL, NULL, 1, NULL, 1, &cbTemp), "GetPrintProcessorDirectoryW returns TRUE!\n");
|
||||
ok(GetLastError() == ERROR_INVALID_USER_BUFFER, "GetPrintProcessorDirectoryW returns error %lu!\n", GetLastError());
|
||||
ok(cbTemp == 0, "cbNeeded is %lu!\n", cbNeeded);
|
||||
ok(cbTemp == 0, "cbTemp is %lu!\n", cbTemp);
|
||||
|
||||
// Finally use the function as intended and aim for success!
|
||||
pwszBuffer = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, cbNeeded);
|
||||
|
|
Loading…
Reference in a new issue