mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
mscms/tests: Compile with -D__WINESRC__.
This commit is contained in:
parent
619ceae967
commit
fcd4527ea9
@ -1,6 +1,5 @@
|
||||
TESTDLL = mscms.dll
|
||||
IMPORTS = advapi32
|
||||
EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
|
||||
|
||||
C_SRCS = \
|
||||
profile.c
|
||||
|
@ -59,7 +59,7 @@ static BOOL (WINAPI *pSetStandardColorSpaceProfileW)(PCWSTR,DWORD,PWSTR);
|
||||
static BOOL (WINAPI *pUninstallColorProfileA)(PCSTR,PCSTR,BOOL);
|
||||
static BOOL (WINAPI *pUninstallColorProfileW)(PCWSTR,PCWSTR,BOOL);
|
||||
|
||||
static BOOL (WINAPI *pEnumDisplayDevicesA)(LPCSTR,DWORD,PDISPLAY_DEVICE,DWORD);
|
||||
static BOOL (WINAPI *pEnumDisplayDevicesA)(LPCSTR,DWORD,PDISPLAY_DEVICEA,DWORD);
|
||||
|
||||
#define GETFUNCPTR(func) p##func = (void *)GetProcAddress( hmscms, #func ); \
|
||||
if (!p##func) return FALSE;
|
||||
@ -1244,17 +1244,16 @@ static void test_AssociateColorProfileWithDeviceA( char *testprofile )
|
||||
BOOL ret;
|
||||
char profile[MAX_PATH], basename[MAX_PATH];
|
||||
DWORD error, size = sizeof(profile);
|
||||
DISPLAY_DEVICE display;
|
||||
DISPLAY_DEVICEA display, monitor;
|
||||
BOOL res;
|
||||
DISPLAY_DEVICE monitor;
|
||||
|
||||
if (testprofile && pEnumDisplayDevicesA)
|
||||
{
|
||||
display.cb = sizeof( DISPLAY_DEVICE );
|
||||
display.cb = sizeof( DISPLAY_DEVICEA );
|
||||
res = pEnumDisplayDevicesA( NULL, 0, &display, 0 );
|
||||
ok( res, "Can't get display info\n" );
|
||||
|
||||
monitor.cb = sizeof( DISPLAY_DEVICE );
|
||||
monitor.cb = sizeof( DISPLAY_DEVICEA );
|
||||
res = pEnumDisplayDevicesA( display.DeviceName, 0, &monitor, 0 );
|
||||
if (res)
|
||||
{
|
||||
@ -1379,9 +1378,9 @@ START_TEST(profile)
|
||||
}
|
||||
|
||||
/* If found, create a temporary copy for testing purposes */
|
||||
if (standardprofile && GetTempPath( sizeof(path), path ))
|
||||
if (standardprofile && GetTempPathA( sizeof(path), path ))
|
||||
{
|
||||
if (GetTempFileName( path, "rgb", 0, file ))
|
||||
if (GetTempFileNameA( path, "rgb", 0, file ))
|
||||
{
|
||||
if (CopyFileA( standardprofile, file, FALSE ))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user