mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 20:36:26 +00:00
[MSCMS_WINETEST]
* Sync with Wine 1.7.1. CORE-7469 svn path=/trunk/; revision=60295
This commit is contained in:
parent
9c4a2e68c0
commit
575664c6f0
3 changed files with 11 additions and 22 deletions
|
@ -1,10 +1,5 @@
|
||||||
|
|
||||||
add_definitions(
|
|
||||||
-D__ROS_LONG64__
|
|
||||||
-D_DLL -D__USE_CRTIMP)
|
|
||||||
|
|
||||||
add_executable(mscms_winetest profile.c testlist.c)
|
add_executable(mscms_winetest profile.c testlist.c)
|
||||||
target_link_libraries(mscms_winetest wine)
|
|
||||||
set_module_type(mscms_winetest win32cui)
|
set_module_type(mscms_winetest win32cui)
|
||||||
add_importlibs(mscms_winetest advapi32 msvcrt kernel32 ntdll)
|
add_importlibs(mscms_winetest msvcrt kernel32)
|
||||||
add_cd_file(TARGET mscms_winetest DESTINATION reactos/bin FOR all)
|
add_cd_file(TARGET mscms_winetest DESTINATION reactos/bin FOR all)
|
||||||
|
|
|
@ -254,17 +254,16 @@ static void test_GetColorProfileElement( char *standardprofile )
|
||||||
ok( !ret, "GetColorProfileElement() succeeded (%d)\n", GetLastError() );
|
ok( !ret, "GetColorProfileElement() succeeded (%d)\n", GetLastError() );
|
||||||
|
|
||||||
size = 0;
|
size = 0;
|
||||||
|
|
||||||
ret = pGetColorProfileElement( handle, tag, 0, &size, NULL, &ref );
|
ret = pGetColorProfileElement( handle, tag, 0, &size, NULL, &ref );
|
||||||
ok( !ret && size > 0, "GetColorProfileElement() succeeded (%d)\n", GetLastError() );
|
ok( !ret, "GetColorProfileElement() succeeded\n" );
|
||||||
|
ok( size > 0, "wrong size\n" );
|
||||||
size = sizeof(buffer);
|
|
||||||
|
|
||||||
/* Functional checks */
|
/* Functional checks */
|
||||||
|
|
||||||
|
size = sizeof(buffer);
|
||||||
ret = pGetColorProfileElement( handle, tag, 0, &size, buffer, &ref );
|
ret = pGetColorProfileElement( handle, tag, 0, &size, buffer, &ref );
|
||||||
ok( ret && size > 0, "GetColorProfileElement() failed (%d)\n", GetLastError() );
|
ok( ret, "GetColorProfileElement() failed %u\n", GetLastError() );
|
||||||
|
ok( size > 0, "wrong size\n" );
|
||||||
ok( !memcmp( buffer, expect, sizeof(expect) ), "Unexpected tag data\n" );
|
ok( !memcmp( buffer, expect, sizeof(expect) ), "Unexpected tag data\n" );
|
||||||
|
|
||||||
pCloseColorProfile( handle );
|
pCloseColorProfile( handle );
|
||||||
|
@ -1054,18 +1053,16 @@ static void test_SetColorProfileElement( char *testprofile )
|
||||||
/* Functional checks */
|
/* Functional checks */
|
||||||
|
|
||||||
size = sizeof(data);
|
size = sizeof(data);
|
||||||
|
|
||||||
ret = pSetColorProfileElement( handle, tag, 0, &size, data );
|
ret = pSetColorProfileElement( handle, tag, 0, &size, data );
|
||||||
ok( ret, "SetColorProfileElement() failed (%d)\n", GetLastError() );
|
ok( ret, "SetColorProfileElement() failed %u\n", GetLastError() );
|
||||||
|
|
||||||
size = sizeof(buffer);
|
size = sizeof(buffer);
|
||||||
|
|
||||||
ret = pGetColorProfileElement( handle, tag, 0, &size, buffer, &ref );
|
ret = pGetColorProfileElement( handle, tag, 0, &size, buffer, &ref );
|
||||||
ok( ret && size > 0, "GetColorProfileElement() failed (%d)\n", GetLastError() );
|
ok( ret, "GetColorProfileElement() failed %u\n", GetLastError() );
|
||||||
|
ok( size > 0, "wrong size\n" );
|
||||||
|
|
||||||
ok( !memcmp( data, buffer, sizeof(data) ),
|
ok( !memcmp( data, buffer, sizeof(data) ),
|
||||||
"Unexpected tag data, expected %s, got %s (%d)\n",
|
"Unexpected tag data, expected %s, got %s (%u)\n", data, buffer, GetLastError() );
|
||||||
data, buffer, GetLastError() );
|
|
||||||
|
|
||||||
pCloseColorProfile( handle );
|
pCloseColorProfile( handle );
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
/* 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>
|
||||||
|
|
||||||
extern void func_profile(void);
|
extern void func_profile(void);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue