-add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
-
add_executable(twain_32_winetest dsm.c testlist.c)
-target_link_libraries(twain_32_winetest wine)
set_module_type(twain_32_winetest win32cui)
-add_importlibs(twain_32_winetest user32 gdi32 msvcrt kernel32 ntdll)
+add_importlibs(twain_32_winetest user32 gdi32 msvcrt kernel32)
add_cd_file(TARGET twain_32_winetest DESTINATION reactos/bin FOR all)
*
*/
#include <stdarg.h>
-#include <assert.h>
+
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
static BOOL dsm_RegisterWindowClasses(void)
{
WNDCLASSA cls;
+ BOOL rc;
cls.style = 0;
cls.lpfnWndProc = DefWindowProc;
cls.hbrBackground = GetStockObject(WHITE_BRUSH);
cls.lpszMenuName = NULL;
cls.lpszClassName = "TWAIN_dsm_class";
- if (!RegisterClassA(&cls)) return FALSE;
- return TRUE;
+ rc = RegisterClassA(&cls);
+ ok(rc, "RegisterClassA failed: le=%u\n", GetLastError());
+ return rc;
}
HANDLE hwnd;
HMODULE htwain;
- if (!dsm_RegisterWindowClasses()) assert(0);
+ if (!dsm_RegisterWindowClasses())
+ {
+ skip("Could not register the test class, skipping tests\n");
+ return;
+ }
htwain = LoadLibraryA("twain_32.dll");
if (! htwain)