mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 23:13:04 +00:00
[TWAIN_32_WINETEST]
* Sync with Wine 1.7.1. CORE-7469 svn path=/trunk/; revision=61208
This commit is contained in:
parent
c20aabb675
commit
2983621f6d
3 changed files with 11 additions and 13 deletions
|
@ -1,10 +1,5 @@
|
||||||
|
|
||||||
add_definitions(
|
|
||||||
-D__ROS_LONG64__
|
|
||||||
-D_DLL -D__USE_CRTIMP)
|
|
||||||
|
|
||||||
add_executable(twain_32_winetest dsm.c testlist.c)
|
add_executable(twain_32_winetest dsm.c testlist.c)
|
||||||
target_link_libraries(twain_32_winetest wine)
|
|
||||||
set_module_type(twain_32_winetest win32cui)
|
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)
|
add_cd_file(TARGET twain_32_winetest DESTINATION reactos/bin FOR all)
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <assert.h>
|
|
||||||
#include "windef.h"
|
#include "windef.h"
|
||||||
#include "winbase.h"
|
#include "winbase.h"
|
||||||
#include "wingdi.h"
|
#include "wingdi.h"
|
||||||
|
@ -33,6 +33,7 @@ static DSMENTRYPROC pDSM_Entry;
|
||||||
static BOOL dsm_RegisterWindowClasses(void)
|
static BOOL dsm_RegisterWindowClasses(void)
|
||||||
{
|
{
|
||||||
WNDCLASSA cls;
|
WNDCLASSA cls;
|
||||||
|
BOOL rc;
|
||||||
|
|
||||||
cls.style = 0;
|
cls.style = 0;
|
||||||
cls.lpfnWndProc = DefWindowProc;
|
cls.lpfnWndProc = DefWindowProc;
|
||||||
|
@ -44,9 +45,10 @@ static BOOL dsm_RegisterWindowClasses(void)
|
||||||
cls.hbrBackground = GetStockObject(WHITE_BRUSH);
|
cls.hbrBackground = GetStockObject(WHITE_BRUSH);
|
||||||
cls.lpszMenuName = NULL;
|
cls.lpszMenuName = NULL;
|
||||||
cls.lpszClassName = "TWAIN_dsm_class";
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -832,7 +834,11 @@ START_TEST(dsm)
|
||||||
HANDLE hwnd;
|
HANDLE hwnd;
|
||||||
HMODULE htwain;
|
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");
|
htwain = LoadLibraryA("twain_32.dll");
|
||||||
if (! htwain)
|
if (! htwain)
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
/* Automatically generated file; DO NOT EDIT!! */
|
/* Automatically generated file; DO NOT EDIT!! */
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
|
||||||
#include <windows.h>
|
|
||||||
|
|
||||||
#define STANDALONE
|
#define STANDALONE
|
||||||
#include "wine/test.h"
|
#include "wine/test.h"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue