mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 14:30:57 +00:00
3a69fd4e96
* Pass the correct handle to _RpcGetPrinter in GetPrinterW. * Pass an empty string instead of a NULL pointer as wszComputerName to the GetPrinterLevel* functions, because this variable is later used as source for StringCbCopyExW. * Don't check for GetLastError() == ERROR_SUCCESS in tests. Windows apparently only sets the last error in case of failure. The Printing code should probably be changed similarly in a future commit. Should fix CORE-14072
19 lines
515 B
CMake
19 lines
515 B
CMake
|
|
list(APPEND SOURCE
|
|
ClosePrinter.c
|
|
EnumPrinters.c
|
|
EnumPrintProcessorDatatypes.c
|
|
GetDefaultPrinter.c
|
|
GetPrinter.c
|
|
GetPrinterData.c
|
|
GetPrintProcessorDirectory.c
|
|
IsValidDevmode.c
|
|
OpenPrinter.c
|
|
StartDocPrinter.c
|
|
testlist.c)
|
|
|
|
add_executable(winspool_apitest ${SOURCE})
|
|
target_link_libraries(winspool_apitest wine ${PSEH_LIB})
|
|
set_module_type(winspool_apitest win32cui)
|
|
add_importlibs(winspool_apitest winspool msvcrt kernel32 ntdll)
|
|
add_rostests_file(TARGET winspool_apitest)
|