Wine-devel
Threads by month
- ----- 2026 -----
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2004 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2003 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2002 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2001 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- 5 participants
- 84522 discussions
[PATCH] mfplat/buffer: Avoid two copies when locking a D3D9 buffer if possible.
by Giovanni Mascellani 11 Feb '22
by Giovanni Mascellani 11 Feb '22
11 Feb '22
Running CHRONO TRIGGER with this commit saves at least 3 ms per frame
in the sample copier on my computer.
Signed-off-by: Giovanni Mascellani <gmascellani(a)codeweavers.com>
---
dlls/mfplat/buffer.c | 42 +++++++++++++++++++++++++++++++-----------
1 file changed, 31 insertions(+), 11 deletions(-)
diff --git a/dlls/mfplat/buffer.c b/dlls/mfplat/buffer.c
index f161bb29d80..e20961169f8 100644
--- a/dlls/mfplat/buffer.c
+++ b/dlls/mfplat/buffer.c
@@ -57,6 +57,7 @@ struct buffer
int pitch;
unsigned int locks;
p_copy_image_func copy_image;
+ BOOL copy;
} _2d;
struct
{
@@ -380,17 +381,28 @@ static HRESULT WINAPI d3d9_surface_buffer_Lock(IMFMediaBuffer *iface, BYTE **dat
{
D3DLOCKED_RECT rect;
- if (!(buffer->_2d.linear_buffer = malloc(ALIGN_SIZE(buffer->_2d.plane_size, MF_64_BYTE_ALIGNMENT))))
- hr = E_OUTOFMEMORY;
+ hr = IDirect3DSurface9_LockRect(buffer->d3d9_surface.surface, &rect, NULL, 0);
if (SUCCEEDED(hr))
{
- hr = IDirect3DSurface9_LockRect(buffer->d3d9_surface.surface, &rect, NULL, 0);
- if (SUCCEEDED(hr))
+ if (rect.Pitch == buffer->_2d.width)
{
- copy_image(buffer, buffer->_2d.linear_buffer, buffer->_2d.width, rect.pBits, rect.Pitch,
- buffer->_2d.width, buffer->_2d.height);
- IDirect3DSurface9_UnlockRect(buffer->d3d9_surface.surface);
+ buffer->_2d.linear_buffer = rect.pBits;
+ buffer->_2d.copy = FALSE;
+ }
+ else
+ {
+ if ((buffer->_2d.linear_buffer = malloc(ALIGN_SIZE(buffer->_2d.plane_size, MF_64_BYTE_ALIGNMENT))))
+ {
+ copy_image(buffer, buffer->_2d.linear_buffer, buffer->_2d.width, rect.pBits, rect.Pitch,
+ buffer->_2d.width, buffer->_2d.height);
+ IDirect3DSurface9_UnlockRect(buffer->d3d9_surface.surface);
+ buffer->_2d.copy = TRUE;
+ }
+ else
+ {
+ hr = E_OUTOFMEMORY;
+ }
}
}
}
@@ -425,14 +437,22 @@ static HRESULT WINAPI d3d9_surface_buffer_Unlock(IMFMediaBuffer *iface)
{
D3DLOCKED_RECT rect;
- if (SUCCEEDED(hr = IDirect3DSurface9_LockRect(buffer->d3d9_surface.surface, &rect, NULL, 0)))
+ if (buffer->_2d.copy)
+ {
+ if (SUCCEEDED(hr = IDirect3DSurface9_LockRect(buffer->d3d9_surface.surface, &rect, NULL, 0)))
+ {
+ copy_image(buffer, rect.pBits, rect.Pitch, buffer->_2d.linear_buffer, buffer->_2d.width,
+ buffer->_2d.width, buffer->_2d.height);
+ IDirect3DSurface9_UnlockRect(buffer->d3d9_surface.surface);
+ }
+
+ free(buffer->_2d.linear_buffer);
+ }
+ else
{
- copy_image(buffer, rect.pBits, rect.Pitch, buffer->_2d.linear_buffer, buffer->_2d.width,
- buffer->_2d.width, buffer->_2d.height);
IDirect3DSurface9_UnlockRect(buffer->d3d9_surface.surface);
}
- free(buffer->_2d.linear_buffer);
buffer->_2d.linear_buffer = NULL;
}
--
2.34.1
2
3
Signed-off-by: Eric Pouech <eric.pouech(a)gmail.com>
---
dlls/iccvid/Makefile.in | 1 -
dlls/iccvid/iccvid.c | 16 ++++++++--------
2 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/dlls/iccvid/Makefile.in b/dlls/iccvid/Makefile.in
index 835935c1162..77254521fae 100644
--- a/dlls/iccvid/Makefile.in
+++ b/dlls/iccvid/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = iccvid.dll
IMPORTS = user32
diff --git a/dlls/iccvid/iccvid.c b/dlls/iccvid/iccvid.c
index 67967a0fb38..4dc418c590b 100644
--- a/dlls/iccvid/iccvid.c
+++ b/dlls/iccvid/iccvid.c
@@ -743,8 +743,8 @@ static void ICCVID_dump_BITMAPINFO(const BITMAPINFO * bmi)
TRACE(
"planes = %d\n"
"bpp = %d\n"
- "height = %d\n"
- "width = %d\n"
+ "height = %ld\n"
+ "width = %ld\n"
"compr = %s\n",
bmi->bmiHeader.biPlanes,
bmi->bmiHeader.biBitCount,
@@ -759,7 +759,7 @@ static inline int ICCVID_CheckMask(RGBQUAD bmiColors[3], COLORREF redMask, COLOR
COLORREF realBlueMask = MAKECOLOUR32(bmiColors[1].rgbRed, bmiColors[1].rgbGreen, bmiColors[1].rgbBlue);
COLORREF realGreenMask = MAKECOLOUR32(bmiColors[2].rgbRed, bmiColors[2].rgbGreen, bmiColors[2].rgbBlue);
- TRACE("\nbmiColors[0] = 0x%08x\nbmiColors[1] = 0x%08x\nbmiColors[2] = 0x%08x\n",
+ TRACE("\nbmiColors[0] = 0x%08lx\nbmiColors[1] = 0x%08lx\nbmiColors[2] = 0x%08lx\n",
realRedMask, realBlueMask, realGreenMask);
if ((realRedMask == redMask) &&
@@ -888,7 +888,7 @@ static LRESULT ICCVID_Decompress( ICCVID_Info *info, ICDECOMPRESS *icd, DWORD si
LONG width, height;
BOOL inverted;
- TRACE("ICM_DECOMPRESS %p %p %d\n", info, icd, size);
+ TRACE("ICM_DECOMPRESS %p %p %ld\n", info, icd, size);
if( (info==NULL) || (info->dwMagic!=ICCVID_MAGIC) )
return ICERR_BADPARAM;
@@ -913,7 +913,7 @@ static LRESULT ICCVID_DecompressEx( ICCVID_Info *info, ICDECOMPRESSEX *icd, DWOR
LONG width, height;
BOOL inverted;
- TRACE("ICM_DECOMPRESSEX %p %p %d\n", info, icd, size);
+ TRACE("ICM_DECOMPRESSEX %p %p %ld\n", info, icd, size);
if( (info==NULL) || (info->dwMagic!=ICCVID_MAGIC) )
return ICERR_BADPARAM;
@@ -979,7 +979,7 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
{
ICCVID_Info *info = (ICCVID_Info *) dwDriverId;
- TRACE("%ld %p %d %ld %ld\n", dwDriverId, hdrvr, msg, lParam1, lParam2);
+ TRACE("%Id %p %d %Id %Id\n", dwDriverId, hdrvr, msg, lParam1, lParam2);
switch( msg )
{
@@ -1043,14 +1043,14 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
return ICERR_UNSUPPORTED;
default:
- FIXME("Unknown message: %04x %ld %ld\n", msg, lParam1, lParam2);
+ FIXME("Unknown message: %04x %Id %Id\n", msg, lParam1, lParam2);
}
return ICERR_UNSUPPORTED;
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
{
- TRACE("(%p,%d,%p)\n", hModule, dwReason, lpReserved);
+ TRACE("(%p,%ld,%p)\n", hModule, dwReason, lpReserved);
switch (dwReason)
{
2
24
v2: Rebase.
Signed-off-by: Hans Leidekker <hans(a)codeweavers.com>
---
dlls/mscms/Makefile.in | 1 -
dlls/mscms/mscms_main.c | 4 +-
dlls/mscms/profile.c | 38 ++--
dlls/mscms/stub.c | 30 +--
dlls/mscms/tests/Makefile.in | 1 -
dlls/mscms/tests/profile.c | 372 +++++++++++++++++------------------
dlls/mscms/transform.c | 25 ++-
7 files changed, 232 insertions(+), 239 deletions(-)
diff --git a/dlls/mscms/Makefile.in b/dlls/mscms/Makefile.in
index f28f90327f4..d57cc54e3c6 100644
--- a/dlls/mscms/Makefile.in
+++ b/dlls/mscms/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = mscms.dll
IMPORTLIB = mscms
IMPORTS = $(LCMS2_PE_LIBS) shlwapi advapi32
diff --git a/dlls/mscms/mscms_main.c b/dlls/mscms/mscms_main.c
index 1ea2eaef832..8c7e7c9e498 100644
--- a/dlls/mscms/mscms_main.c
+++ b/dlls/mscms/mscms_main.c
@@ -37,9 +37,9 @@ static void lcms_error_handler(cmsContext ctx, cmsUInt32Number error, const char
TRACE("%u %s\n", error, debugstr_a(text));
}
-BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
+BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, void *reserved )
{
- TRACE( "(%p, %d, %p)\n", hinst, reason, reserved );
+ TRACE( "(%p, %lu, %p)\n", hinst, reason, reserved );
switch (reason)
{
diff --git a/dlls/mscms/profile.c b/dlls/mscms/profile.c
index 83bfcb50143..2c20b857a81 100644
--- a/dlls/mscms/profile.c
+++ b/dlls/mscms/profile.c
@@ -328,7 +328,7 @@ BOOL WINAPI GetColorProfileElement( HPROFILE handle, TAGTYPE type, DWORD offset,
BOOL ret;
struct profile *profile = grab_profile( handle );
- TRACE( "( %p, 0x%08x, %d, %p, %p, %p )\n", handle, type, offset, size, buffer, ref );
+ TRACE( "( %p, %#lx, %lu, %p, %p, %p )\n", handle, type, offset, size, buffer, ref );
if (!profile) return FALSE;
@@ -366,7 +366,7 @@ BOOL WINAPI GetColorProfileElementTag( HPROFILE handle, DWORD index, PTAGTYPE ty
struct profile *profile = grab_profile( handle );
struct tag_entry tag;
- TRACE( "( %p, %d, %p )\n", handle, index, type );
+ TRACE( "( %p, %lu, %p )\n", handle, index, type );
if (!profile) return FALSE;
@@ -507,7 +507,7 @@ BOOL WINAPI GetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile
BOOL ret = FALSE;
DWORD sizeW;
- TRACE( "( 0x%08x, %p, %p )\n", id, profile, size );
+ TRACE( "( %#lx, %p, %p )\n", id, profile, size );
if (machine)
{
@@ -567,7 +567,7 @@ BOOL WINAPI GetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profi
WCHAR rgbprofile[MAX_PATH];
DWORD len = sizeof(rgbprofile);
- TRACE( "( 0x%08x, %p, %p )\n", id, profile, size );
+ TRACE( "( %#lx, %p, %p )\n", id, profile, size );
if (machine)
{
@@ -663,15 +663,15 @@ static BOOL match_profile( PENUMTYPEW rec, PPROFILEHEADER hdr )
}
if (rec->dwFields & ET_MEDIATYPE)
{
- FIXME( "ET_MEDIATYPE: 0x%08x\n", rec->dwMediaType );
+ FIXME( "ET_MEDIATYPE: %#lx\n", rec->dwMediaType );
}
if (rec->dwFields & ET_DITHERMODE)
{
- FIXME( "ET_DITHERMODE: 0x%08x\n", rec->dwDitheringMode );
+ FIXME( "ET_DITHERMODE: %#lx\n", rec->dwDitheringMode );
}
if (rec->dwFields & ET_RESOLUTION)
{
- FIXME( "ET_RESOLUTION: 0x%08x, 0x%08x\n",
+ FIXME( "ET_RESOLUTION: %#lx, %#lx\n",
rec->dwResolution[0], rec->dwResolution[1] );
}
if (rec->dwFields & ET_DEVICECLASS)
@@ -710,7 +710,7 @@ static BOOL match_profile( PENUMTYPEW rec, PPROFILEHEADER hdr )
}
if (rec->dwFields & ET_PROFILEFLAGS)
{
- TRACE( "ET_PROFILEFLAGS: 0x%08x\n", rec->dwProfileFlags );
+ TRACE( "ET_PROFILEFLAGS: %#lx\n", rec->dwProfileFlags );
if (rec->dwProfileFlags != hdr->phProfileFlags) return FALSE;
}
if (rec->dwFields & ET_MANUFACTURER)
@@ -725,14 +725,14 @@ static BOOL match_profile( PENUMTYPEW rec, PPROFILEHEADER hdr )
}
if (rec->dwFields & ET_ATTRIBUTES)
{
- TRACE( "ET_ATTRIBUTES: 0x%08x, 0x%08x\n",
+ TRACE( "ET_ATTRIBUTES: %#lx, %#lx\n",
rec->dwAttributes[0], rec->dwAttributes[1] );
if (rec->dwAttributes[0] != hdr->phAttributes[0] ||
rec->dwAttributes[1] != hdr->phAttributes[1]) return FALSE;
}
if (rec->dwFields & ET_RENDERINGINTENT)
{
- TRACE( "ET_RENDERINGINTENT: 0x%08x\n", rec->dwRenderingIntent );
+ TRACE( "ET_RENDERINGINTENT: %#lx\n", rec->dwRenderingIntent );
if (rec->dwRenderingIntent != hdr->phRenderingIntent) return FALSE;
}
if (rec->dwFields & ET_CREATOR)
@@ -1095,7 +1095,7 @@ BOOL WINAPI IsColorProfileTagPresent( HPROFILE handle, TAGTYPE type, PBOOL prese
struct profile *profile = grab_profile( handle );
struct tag_entry tag;
- TRACE( "( %p, 0x%08x, %p )\n", handle, type, present );
+ TRACE( "( %p, %#lx, %p )\n", handle, type, present );
if (!profile) return FALSE;
@@ -1164,7 +1164,7 @@ BOOL WINAPI SetColorProfileElement( HPROFILE handle, TAGTYPE type, DWORD offset,
BOOL ret;
struct profile *profile = grab_profile( handle );
- TRACE( "( %p, 0x%08x, %d, %p, %p )\n", handle, type, offset, size, buffer );
+ TRACE( "( %p, %#lx, %lu, %p, %p )\n", handle, type, offset, size, buffer );
if (!profile) return FALSE;
@@ -1286,7 +1286,7 @@ HPROFILE WINAPI OpenColorProfileA( PPROFILE profile, DWORD access, DWORD sharing
HPROFILE handle = NULL;
PROFILE profileW;
- TRACE( "( %p, 0x%08x, 0x%08x, 0x%08x )\n", profile, access, sharing, creation );
+ TRACE( "( %p, %#lx, %#lx, %#lx )\n", profile, access, sharing, creation );
if (!profile || !profile->pProfileData) return NULL;
@@ -1331,7 +1331,7 @@ HPROFILE WINAPI OpenColorProfileW( PPROFILE profile, DWORD access, DWORD sharing
HANDLE handle = INVALID_HANDLE_VALUE;
DWORD size;
- TRACE( "( %p, 0x%08x, 0x%08x, 0x%08x )\n", profile, access, sharing, creation );
+ TRACE( "( %p, %#lx, %#lx, %#lx )\n", profile, access, sharing, creation );
if (!profile || !profile->pProfileData) return NULL;
@@ -1381,7 +1381,7 @@ HPROFILE WINAPI OpenColorProfileW( PPROFILE profile, DWORD access, DWORD sharing
}
if (handle == INVALID_HANDLE_VALUE)
{
- WARN( "Unable to open color profile %u\n", GetLastError() );
+ WARN( "Unable to open color profile %lu\n", GetLastError() );
return NULL;
}
if ((size = GetFileSize( handle, NULL )) == INVALID_FILE_SIZE)
@@ -1413,7 +1413,7 @@ HPROFILE WINAPI OpenColorProfileW( PPROFILE profile, DWORD access, DWORD sharing
}
else
{
- ERR( "Invalid profile type %u\n", profile->dwType );
+ ERR( "Invalid profile type %lu\n", profile->dwType );
return NULL;
}
@@ -1476,7 +1476,7 @@ BOOL WINAPI WcsGetDefaultColorProfileSize( WCS_PROFILE_MANAGEMENT_SCOPE scope, P
COLORPROFILETYPE type, COLORPROFILESUBTYPE subtype,
DWORD profile_id, PDWORD profile_size)
{
- FIXME( "%d %s %d %d %d %p\n", scope, debugstr_w(device_name), type, subtype, profile_id, profile_size );
+ FIXME( "%d, %s, %d, %d, %lu, %p\n", scope, debugstr_w(device_name), type, subtype, profile_id, profile_size );
SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
return FALSE;
}
@@ -1500,7 +1500,7 @@ HPROFILE WINAPI WcsOpenColorProfileA( PROFILE *cdm, PROFILE *camp, PROFILE *gmmp
PROFILE cdmW, campW = {0}, gmmpW = {0};
HPROFILE ret = NULL;
- TRACE( "%p, %p, %p, %08x, %08x, %08x, %08x\n", cdm, camp, gmmp, access, sharing, creation, flags );
+ TRACE( "%p, %p, %p, %#lx, %#lx, %#lx, %#lx\n", cdm, camp, gmmp, access, sharing, creation, flags );
if (!cdm || !profile_AtoW( cdm, &cdmW )) return NULL;
if (camp && !profile_AtoW( camp, &campW )) goto done;
@@ -1521,7 +1521,7 @@ done:
HPROFILE WINAPI WcsOpenColorProfileW( PROFILE *cdm, PROFILE *camp, PROFILE *gmmp, DWORD access, DWORD sharing,
DWORD creation, DWORD flags )
{
- TRACE( "%p, %p, %p, %08x, %08x, %08x, %08x\n", cdm, camp, gmmp, access, sharing, creation, flags );
+ TRACE( "%p, %p, %p, %#lx, %#lx, %#lx, %#lx\n", cdm, camp, gmmp, access, sharing, creation, flags );
FIXME("no support for WCS profiles\n" );
return OpenColorProfileW( cdm, access, sharing, creation );
diff --git a/dlls/mscms/stub.c b/dlls/mscms/stub.c
index 28c08e20868..6ac777a86f7 100644
--- a/dlls/mscms/stub.c
+++ b/dlls/mscms/stub.c
@@ -35,7 +35,7 @@ BOOL WINAPI CheckBitmapBits( HTRANSFORM transform, PVOID srcbits, BMFORMAT forma
DWORD height, DWORD stride, PBYTE result, PBMCALLBACKFN callback,
LPARAM data )
{
- FIXME( "( %p, %p, 0x%08x, 0x%08x, 0x%08x, 0x%08x, %p, %p, 0x%08lx ) stub\n",
+ FIXME( "( %p, %p, %#x, %#lx, %#lx, %#lx, %p, %p, %#Ix ) stub\n",
transform, srcbits, format, width, height, stride, result, callback, data );
return FALSE;
@@ -44,21 +44,21 @@ BOOL WINAPI CheckBitmapBits( HTRANSFORM transform, PVOID srcbits, BMFORMAT forma
BOOL WINAPI CheckColors( HTRANSFORM transform, PCOLOR colors, DWORD number, COLORTYPE type,
PBYTE result )
{
- FIXME( "( %p, %p, 0x%08x, 0x%08x, %p ) stub\n", transform, colors, number, type, result );
+ FIXME( "( %p, %p, %#lx, %#x, %p ) stub\n", transform, colors, number, type, result );
return FALSE;
}
BOOL WINAPI ConvertColorNameToIndex( HPROFILE profile, PCOLOR_NAME name, PDWORD index, DWORD count )
{
- FIXME( "( %p, %p, %p, 0x%08x ) stub\n", profile, name, index, count );
+ FIXME( "( %p, %p, %p, %#lx ) stub\n", profile, name, index, count );
return FALSE;
}
BOOL WINAPI ConvertIndexToColorName( HPROFILE profile, PDWORD index, PCOLOR_NAME name, DWORD count )
{
- FIXME( "( %p, %p, %p, 0x%08x ) stub\n", profile, index, name, count );
+ FIXME( "( %p, %p, %p, %#lx ) stub\n", profile, index, name, count );
return FALSE;
}
@@ -66,7 +66,7 @@ BOOL WINAPI ConvertIndexToColorName( HPROFILE profile, PDWORD index, PCOLOR_NAME
BOOL WINAPI CreateDeviceLinkProfile( PHPROFILE profiles, DWORD nprofiles, PDWORD intents,
DWORD nintents, DWORD flags, PBYTE *data, DWORD index )
{
- FIXME( "( %p, 0x%08x, %p, 0x%08x, 0x%08x, %p, 0x%08x ) stub\n",
+ FIXME( "( %p, %#lx, %p, %#lx, %#lx, %p, %#lx ) stub\n",
profiles, nprofiles, intents, nintents, flags, data, index );
return FALSE;
@@ -90,7 +90,7 @@ DWORD WINAPI GenerateCopyFilePaths( LPCWSTR printer, LPCWSTR directory, LPBYTE c
DWORD level, LPWSTR sourcedir, LPDWORD sourcedirsize,
LPWSTR targetdir, LPDWORD targetdirsize, DWORD flags )
{
- FIXME( "( %s, %s, %p, 0x%08x, %p, %p, %p, %p, 0x%08x ) stub\n",
+ FIXME( "( %s, %s, %p, %#lx, %p, %p, %p, %p, %#lx ) stub\n",
debugstr_w(printer), debugstr_w(directory), clientinfo, level, sourcedir,
sourcedirsize, targetdir, targetdirsize, flags );
return ERROR_SUCCESS;
@@ -98,7 +98,7 @@ DWORD WINAPI GenerateCopyFilePaths( LPCWSTR printer, LPCWSTR directory, LPBYTE c
DWORD WINAPI GetCMMInfo( HTRANSFORM transform, DWORD info )
{
- FIXME( "( %p, 0x%08x ) stub\n", transform, info );
+ FIXME( "( %p, %#lx ) stub\n", transform, info );
return 0;
}
@@ -113,14 +113,14 @@ BOOL WINAPI GetNamedProfileInfo( HPROFILE profile, PNAMED_PROFILE_INFO info )
BOOL WINAPI GetPS2ColorRenderingDictionary( HPROFILE profile, DWORD intent, PBYTE buffer,
PDWORD size, PBOOL binary )
{
- FIXME( "( %p, 0x%08x, %p, %p, %p ) stub\n", profile, intent, buffer, size, binary );
+ FIXME( "( %p, %#lx, %p, %p, %p ) stub\n", profile, intent, buffer, size, binary );
return FALSE;
}
BOOL WINAPI GetPS2ColorRenderingIntent( HPROFILE profile, DWORD intent, PBYTE buffer, PDWORD size )
{
- FIXME( "( %p, 0x%08x, %p, %p ) stub\n", profile, intent, buffer, size );
+ FIXME( "( %p, %#lx, %p, %p ) stub\n", profile, intent, buffer, size );
return FALSE;
}
@@ -128,7 +128,7 @@ BOOL WINAPI GetPS2ColorRenderingIntent( HPROFILE profile, DWORD intent, PBYTE bu
BOOL WINAPI GetPS2ColorSpaceArray( HPROFILE profile, DWORD intent, DWORD type, PBYTE buffer,
PDWORD size, PBOOL binary )
{
- FIXME( "( %p, 0x%08x, 0x%08x, %p, %p, %p ) stub\n", profile, intent, type, buffer, size, binary );
+ FIXME( "( %p, %#lx, %#lx, %p, %p, %p ) stub\n", profile, intent, type, buffer, size, binary );
return FALSE;
}
@@ -156,33 +156,33 @@ BOOL WINAPI SelectCMM( DWORD id )
BOOL WINAPI SetColorProfileElementReference( HPROFILE profile, TAGTYPE type, TAGTYPE ref )
{
- FIXME( "( %p, 0x%08x, 0x%08x ) stub\n", profile, type, ref );
+ FIXME( "( %p, %#lx, %#lx ) stub\n", profile, type, ref );
return TRUE;
}
BOOL WINAPI SetColorProfileElementSize( HPROFILE profile, TAGTYPE type, DWORD size )
{
- FIXME( "( %p, 0x%08x, 0x%08x ) stub\n", profile, type, size );
+ FIXME( "( %p, %#lx, %#lx ) stub\n", profile, type, size );
return FALSE;
}
BOOL WINAPI SetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile )
{
- FIXME( "( 0x%08x, %p ) stub\n", id, profile );
+ FIXME( "( %#lx, %p ) stub\n", id, profile );
return TRUE;
}
BOOL WINAPI SetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profile )
{
- FIXME( "( 0x%08x, %p ) stub\n", id, profile );
+ FIXME( "( %#lx, %p ) stub\n", id, profile );
return TRUE;
}
BOOL WINAPI SpoolerCopyFileEvent( LPWSTR printer, LPWSTR key, DWORD event )
{
- FIXME( "( %s, %s, 0x%08x ) stub\n", debugstr_w(printer), debugstr_w(key), event );
+ FIXME( "( %s, %s, %#lx ) stub\n", debugstr_w(printer), debugstr_w(key), event );
return TRUE;
}
diff --git a/dlls/mscms/tests/Makefile.in b/dlls/mscms/tests/Makefile.in
index e9ff9724e2f..2d229c049ab 100644
--- a/dlls/mscms/tests/Makefile.in
+++ b/dlls/mscms/tests/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
TESTDLL = mscms.dll
IMPORTS = advapi32
diff --git a/dlls/mscms/tests/profile.c b/dlls/mscms/tests/profile.c
index be4eaa66c00..e0bfbd70e10 100644
--- a/dlls/mscms/tests/profile.c
+++ b/dlls/mscms/tests/profile.c
@@ -161,29 +161,25 @@ static void test_GetColorDirectoryA(void)
/* Parameter checks */
ret = pGetColorDirectoryA( NULL, NULL, NULL );
- ok( !ret, "GetColorDirectoryA() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorDirectoryA() succeeded (%lu)\n", GetLastError() );
size = 0;
-
ret = pGetColorDirectoryA( NULL, NULL, &size );
- ok( !ret && size > 0, "GetColorDirectoryA() succeeded (%d)\n", GetLastError() );
+ ok( !ret && size > 0, "GetColorDirectoryA() succeeded (%lu)\n", GetLastError() );
size = 0;
-
ret = pGetColorDirectoryA( NULL, buffer, &size );
- ok( !ret && size > 0, "GetColorDirectoryA() succeeded (%d)\n", GetLastError() );
+ ok( !ret && size > 0, "GetColorDirectoryA() succeeded (%lu)\n", GetLastError() );
size = 1;
-
ret = pGetColorDirectoryA( NULL, buffer, &size );
- ok( !ret && size > 0, "GetColorDirectoryA() succeeded (%d)\n", GetLastError() );
+ ok( !ret && size > 0, "GetColorDirectoryA() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
size = sizeof(buffer);
-
ret = pGetColorDirectoryA( NULL, buffer, &size );
- ok( ret && size > 0, "GetColorDirectoryA() failed (%d)\n", GetLastError() );
+ ok( ret && size > 0, "GetColorDirectoryA() failed (%lu)\n", GetLastError() );
}
static void test_GetColorDirectoryW(void)
@@ -195,33 +191,27 @@ static void test_GetColorDirectoryW(void)
/* Parameter checks */
/* This one crashes win2k
-
ret = pGetColorDirectoryW( NULL, NULL, NULL );
- ok( !ret, "GetColorDirectoryW() succeeded (%d)\n", GetLastError() );
-
+ ok( !ret, "GetColorDirectoryW() succeeded (%lu)\n", GetLastError() );
*/
size = 0;
-
ret = pGetColorDirectoryW( NULL, NULL, &size );
- ok( !ret && size > 0, "GetColorDirectoryW() succeeded (%d)\n", GetLastError() );
+ ok( !ret && size > 0, "GetColorDirectoryW() succeeded (%lu)\n", GetLastError() );
size = 0;
-
ret = pGetColorDirectoryW( NULL, buffer, &size );
- ok( !ret && size > 0, "GetColorDirectoryW() succeeded (%d)\n", GetLastError() );
+ ok( !ret && size > 0, "GetColorDirectoryW() succeeded (%lu)\n", GetLastError() );
size = 1;
-
ret = pGetColorDirectoryW( NULL, buffer, &size );
- ok( !ret && size > 0, "GetColorDirectoryW() succeeded (%d)\n", GetLastError() );
+ ok( !ret && size > 0, "GetColorDirectoryW() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
size = sizeof(buffer);
-
ret = pGetColorDirectoryW( NULL, buffer, &size );
- ok( ret && size > 0, "GetColorDirectoryW() failed (%d)\n", GetLastError() );
+ ok( ret && size > 0, "GetColorDirectoryW() failed (%lu)\n", GetLastError() );
}
static void test_GetColorProfileElement( char *standardprofile )
@@ -241,15 +231,15 @@ static void test_GetColorProfileElement( char *standardprofile )
profile.cbDataSize = strlen(standardprofile);
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
/* Parameter checks */
ret = pGetColorProfileElement( handle, tag, 0, NULL, NULL, &ref );
- ok( !ret, "GetColorProfileElement() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileElement() succeeded (%lu)\n", GetLastError() );
ret = pGetColorProfileElement( handle, tag, 0, &size, NULL, NULL );
- ok( !ret, "GetColorProfileElement() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileElement() succeeded (%lu)\n", GetLastError() );
size = 0;
ret = pGetColorProfileElement( handle, tag, 0, &size, NULL, &ref );
@@ -260,7 +250,7 @@ static void test_GetColorProfileElement( char *standardprofile )
size = sizeof(buffer);
ret = pGetColorProfileElement( handle, tag, 0, &size, buffer, &ref );
- ok( ret, "GetColorProfileElement() failed %u\n", GetLastError() );
+ ok( ret, "GetColorProfileElement() failed %lu\n", GetLastError() );
ok( size > 0, "wrong size\n" );
ok( !memcmp( buffer, expect, sizeof(expect)-1 ), "Unexpected tag data\n" );
@@ -283,27 +273,26 @@ static void test_GetColorProfileElementTag( char *standardprofile )
profile.cbDataSize = strlen(standardprofile);
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
/* Parameter checks */
ret = pGetColorProfileElementTag( NULL, index, &tag );
- ok( !ret, "GetColorProfileElementTag() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileElementTag() succeeded (%lu)\n", GetLastError() );
ret = pGetColorProfileElementTag( handle, 0, &tag );
- ok( !ret, "GetColorProfileElementTag() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileElementTag() succeeded (%lu)\n", GetLastError() );
ret = pGetColorProfileElementTag( handle, index, NULL );
- ok( !ret, "GetColorProfileElementTag() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileElementTag() succeeded (%lu)\n", GetLastError() );
ret = pGetColorProfileElementTag( handle, 18, NULL );
- ok( !ret, "GetColorProfileElementTag() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileElementTag() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
while ((ret = pGetColorProfileElementTag( handle, index, &tag )) && tag != expect) index++;
- ok( ret && tag == expect, "GetColorProfileElementTag() failed (%d)\n",
- GetLastError() );
+ ok( ret && tag == expect, "GetColorProfileElementTag() failed (%lu)\n", GetLastError() );
pCloseColorProfile( handle );
}
@@ -325,40 +314,40 @@ static void test_GetColorProfileFromHandle( char *testprofile )
profile.cbDataSize = strlen(testprofile);
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
/* Parameter checks */
size = 0;
ret = pGetColorProfileFromHandle( handle, NULL, &size );
- ok( !ret && size > 0, "GetColorProfileFromHandle() failed (%d)\n", GetLastError() );
+ ok( !ret && size > 0, "GetColorProfileFromHandle() failed (%lu)\n", GetLastError() );
buffer = HeapAlloc( GetProcessHeap(), 0, size );
if (buffer)
{
ret = pGetColorProfileFromHandle( NULL, buffer, &size );
- ok( !ret, "GetColorProfileFromHandle() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileFromHandle() succeeded (%lu)\n", GetLastError() );
ret = pGetColorProfileFromHandle( handle, buffer, NULL );
- ok( !ret, "GetColorProfileFromHandle() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileFromHandle() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
ret = pGetColorProfileFromHandle( handle, buffer, &size );
- ok( ret && size > 0, "GetColorProfileFromHandle() failed (%d)\n", GetLastError() );
+ ok( ret && size > 0, "GetColorProfileFromHandle() failed (%lu)\n", GetLastError() );
header = (PROFILEHEADER *)buffer;
- ok( header->phClass == 0x72746e6d, "wrong phClass %x\n", header->phClass );
- ok( header->phDataColorSpace == 0x20424752, "wrong phDataColorSpace %x\n", header->phDataColorSpace );
- ok( header->phConnectionSpace == 0x205a5958, "wrong phConnectionSpace %x\n", header->phConnectionSpace );
- ok( header->phSignature == 0x70736361, "wrong phSignature %x\n", header->phSignature );
- ok( header->phProfileFlags == 0x00000000, "wrong phProfileFlags %x\n", header->phProfileFlags );
- ok( header->phRenderingIntent == 0x00000000, "wrong phRenderingIntent %x\n", header->phRenderingIntent );
- ok( header->phIlluminant.ciexyzX == 0xd6f60000, "wrong phIlluminant.ciexyzX %x\n", header->phIlluminant.ciexyzX );
- ok( header->phIlluminant.ciexyzY == 0x00000100, "wrong phIlluminant.ciexyzY %x\n", header->phIlluminant.ciexyzY );
- ok( header->phIlluminant.ciexyzZ == 0x2dd30000, "wrong phIlluminant.ciexyzZ %x\n", header->phIlluminant.ciexyzZ );
+ ok( header->phClass == 0x72746e6d, "wrong phClass %lx\n", header->phClass );
+ ok( header->phDataColorSpace == 0x20424752, "wrong phDataColorSpace %lx\n", header->phDataColorSpace );
+ ok( header->phConnectionSpace == 0x205a5958, "wrong phConnectionSpace %lx\n", header->phConnectionSpace );
+ ok( header->phSignature == 0x70736361, "wrong phSignature %lx\n", header->phSignature );
+ ok( header->phProfileFlags == 0x00000000, "wrong phProfileFlags %lx\n", header->phProfileFlags );
+ ok( header->phRenderingIntent == 0x00000000, "wrong phRenderingIntent %lx\n", header->phRenderingIntent );
+ ok( header->phIlluminant.ciexyzX == 0xd6f60000, "wrong phIlluminant.ciexyzX %lx\n", header->phIlluminant.ciexyzX );
+ ok( header->phIlluminant.ciexyzY == 0x00000100, "wrong phIlluminant.ciexyzY %lx\n", header->phIlluminant.ciexyzY );
+ ok( header->phIlluminant.ciexyzZ == 0x2dd30000, "wrong phIlluminant.ciexyzZ %lx\n", header->phIlluminant.ciexyzZ );
HeapFree( GetProcessHeap(), 0, buffer );
}
@@ -381,36 +370,36 @@ static void test_GetColorProfileHeader( char *testprofile )
profile.cbDataSize = strlen(testprofile);
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
/* Parameter checks */
ret = pGetColorProfileHeader( NULL, NULL );
- ok( !ret, "GetColorProfileHeader() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileHeader() succeeded (%lu)\n", GetLastError() );
ret = pGetColorProfileHeader( NULL, &header );
- ok( !ret, "GetColorProfileHeader() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileHeader() succeeded (%lu)\n", GetLastError() );
if (0) /* Crashes on Vista */
{
ret = pGetColorProfileHeader( handle, NULL );
- ok( !ret, "GetColorProfileHeader() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileHeader() succeeded (%lu)\n", GetLastError() );
}
/* Functional checks */
ret = pGetColorProfileHeader( handle, &header );
- ok( ret, "GetColorProfileHeader() failed (%d)\n", GetLastError() );
-
- ok( header.phClass == 0x6d6e7472, "wrong phClass %x\n", header.phClass );
- ok( header.phDataColorSpace == 0x52474220, "wrong phDataColorSpace %x\n", header.phDataColorSpace );
- ok( header.phConnectionSpace == 0x58595a20, "wrong phConnectionSpace %x\n", header.phConnectionSpace );
- ok( header.phSignature == 0x61637370, "wrong phSignature %x\n", header.phSignature );
- ok( header.phProfileFlags == 0x00000000, "wrong phProfileFlags %x\n", header.phProfileFlags );
- ok( header.phRenderingIntent == 0x00000000, "wrong phRenderingIntent %x\n", header.phRenderingIntent );
- ok( header.phIlluminant.ciexyzX == 0x0000f6d6, "wrong phIlluminant.ciexyzX %x\n", header.phIlluminant.ciexyzX );
- ok( header.phIlluminant.ciexyzY == 0x00010000, "wrong phIlluminant.ciexyzY %x\n", header.phIlluminant.ciexyzY );
- ok( header.phIlluminant.ciexyzZ == 0x0000d32d, "wrong phIlluminant.ciexyzZ %x\n", header.phIlluminant.ciexyzZ );
+ ok( ret, "GetColorProfileHeader() failed (%lu)\n", GetLastError() );
+
+ ok( header.phClass == 0x6d6e7472, "wrong phClass %#lx\n", header.phClass );
+ ok( header.phDataColorSpace == 0x52474220, "wrong phDataColorSpace %#lx\n", header.phDataColorSpace );
+ ok( header.phConnectionSpace == 0x58595a20, "wrong phConnectionSpace %#lx\n", header.phConnectionSpace );
+ ok( header.phSignature == 0x61637370, "wrong phSignature %#lx\n", header.phSignature );
+ ok( header.phProfileFlags == 0x00000000, "wrong phProfileFlags %#lx\n", header.phProfileFlags );
+ ok( header.phRenderingIntent == 0x00000000, "wrong phRenderingIntent %#lx\n", header.phRenderingIntent );
+ ok( header.phIlluminant.ciexyzX == 0x0000f6d6, "wrong phIlluminant.ciexyzX %#lx\n", header.phIlluminant.ciexyzX );
+ ok( header.phIlluminant.ciexyzY == 0x00010000, "wrong phIlluminant.ciexyzY %#lx\n", header.phIlluminant.ciexyzY );
+ ok( header.phIlluminant.ciexyzZ == 0x0000d32d, "wrong phIlluminant.ciexyzZ %#lx\n", header.phIlluminant.ciexyzZ );
pCloseColorProfile( handle );
}
@@ -430,23 +419,21 @@ static void test_GetCountColorProfileElements( char *standardprofile )
profile.cbDataSize = strlen(standardprofile);
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
/* Parameter checks */
ret = pGetCountColorProfileElements( NULL, &count );
- ok( !ret, "GetCountColorProfileElements() succeeded (%d)\n",
- GetLastError() );
+ ok( !ret, "GetCountColorProfileElements() succeeded (%lu)\n", GetLastError() );
ret = pGetCountColorProfileElements( handle, NULL );
- ok( !ret, "GetCountColorProfileElements() succeeded (%d)\n",
- GetLastError() );
+ ok( !ret, "GetCountColorProfileElements() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
ret = pGetCountColorProfileElements( handle, &count );
ok( ret && count > 15 && count < 20,
- "GetCountColorProfileElements() failed (%d) %u\n", GetLastError(), count );
+ "GetCountColorProfileElements() failed (%lu) %lu\n", GetLastError(), count );
pCloseColorProfile( handle );
}
@@ -466,28 +453,32 @@ static void test_GetStandardColorSpaceProfileA( char *standardprofile )
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 1st param, */
ret = pGetStandardColorSpaceProfileA(machine, LCS_sRGB, newprofile, &size);
- ok( !ret && GetLastError() == ERROR_NOT_SUPPORTED, "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_NOT_SUPPORTED, "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 2nd param, */
ret = pGetStandardColorSpaceProfileA(NULL, (DWORD)-1, newprofile, &size);
- ok( !ret && GetLastError() == ERROR_FILE_NOT_FOUND, "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_FILE_NOT_FOUND, "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 4th param, */
ret = pGetStandardColorSpaceProfileA(NULL, LCS_sRGB, newprofile, NULL);
- ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER, "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER, "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 3rd param, */
ret = pGetStandardColorSpaceProfileA(NULL, LCS_sRGB, NULL, &size);
- ok( !ret && GetLastError() == ERROR_INSUFFICIENT_BUFFER, "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_INSUFFICIENT_BUFFER, "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = 0;
SetLastError(0xfaceabee); /* dereferenced 4th param, */
ret = pGetStandardColorSpaceProfileA(NULL, LCS_sRGB, newprofile, &size);
ok( !ret && (GetLastError() == ERROR_MORE_DATA || GetLastError() == ERROR_INSUFFICIENT_BUFFER),
- "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n", ret, GetLastError() );
/* Several invalid parameter checks: */
@@ -495,30 +486,32 @@ static void test_GetStandardColorSpaceProfileA( char *standardprofile )
SetLastError(0xfaceabee); /* 1st, maybe 2nd and then dereferenced 4th param, */
ret = pGetStandardColorSpaceProfileA(machine, 0, newprofile, &size);
ok( !ret && (GetLastError() == ERROR_INVALID_PARAMETER || GetLastError() == ERROR_NOT_SUPPORTED),
- "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n", ret, GetLastError() );
SetLastError(0xfaceabee); /* maybe 2nd and then 4th param, */
ret = pGetStandardColorSpaceProfileA(NULL, 0, newprofile, NULL);
- ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER, "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER, "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = 0;
SetLastError(0xfaceabee); /* maybe 2nd, then 3rd and dereferenced 4th param, */
ret = pGetStandardColorSpaceProfileA(NULL, 0, NULL, &size);
ok( !ret && (GetLastError() == ERROR_INSUFFICIENT_BUFFER || GetLastError() == ERROR_FILE_NOT_FOUND),
- "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n", ret, GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* maybe 2nd param. */
ret = pGetStandardColorSpaceProfileA(NULL, 0, newprofile, &size);
- if (!ret) ok( GetLastError() == ERROR_FILE_NOT_FOUND, "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ if (!ret) ok( GetLastError() == ERROR_FILE_NOT_FOUND, "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
else ok( !lstrcmpiA( newprofile, "" ) && GetLastError() == 0xfaceabee,
- "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n", ret, GetLastError() );
/* Functional checks */
size = sizeof(oldprofile);
ret = pGetStandardColorSpaceProfileA( NULL, LCS_sRGB, oldprofile, &size );
- ok( ret, "GetStandardColorSpaceProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "GetStandardColorSpaceProfileA() failed (%lu)\n", GetLastError() );
SetLastError(0xdeadbeef);
ret = pSetStandardColorSpaceProfileA( NULL, LCS_sRGB, standardprofile );
@@ -527,14 +520,14 @@ static void test_GetStandardColorSpaceProfileA( char *standardprofile )
skip("Not enough rights for SetStandardColorSpaceProfileA\n");
return;
}
- ok( ret, "SetStandardColorSpaceProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "SetStandardColorSpaceProfileA() failed (%lu)\n", GetLastError() );
size = sizeof(newprofile);
ret = pGetStandardColorSpaceProfileA( NULL, LCS_sRGB, newprofile, &size );
- ok( ret, "GetStandardColorSpaceProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "GetStandardColorSpaceProfileA() failed (%lu)\n", GetLastError() );
ret = pSetStandardColorSpaceProfileA( NULL, LCS_sRGB, oldprofile );
- ok( ret, "SetStandardColorSpaceProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "SetStandardColorSpaceProfileA() failed (%lu)\n", GetLastError() );
}
static void test_GetStandardColorSpaceProfileW( WCHAR *standardprofileW )
@@ -552,19 +545,21 @@ static void test_GetStandardColorSpaceProfileW( WCHAR *standardprofileW )
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 1st param, */
ret = pGetStandardColorSpaceProfileW(machineW, LCS_sRGB, newprofile, &size);
- ok( !ret && GetLastError() == ERROR_NOT_SUPPORTED, "GetStandardColorSpaceProfileW() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_NOT_SUPPORTED, "GetStandardColorSpaceProfileW() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 2nd param, */
ret = pGetStandardColorSpaceProfileW(NULL, (DWORD)-1, newprofile, &size);
- ok( !ret && GetLastError() == ERROR_FILE_NOT_FOUND, "GetStandardColorSpaceProfileW() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_FILE_NOT_FOUND, "GetStandardColorSpaceProfileW() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 2nd param, */
ret = pGetStandardColorSpaceProfileW(NULL, 0, newprofile, &size);
ok( (!ret && GetLastError() == ERROR_FILE_NOT_FOUND) ||
broken(ret), /* Win98 and WinME */
- "GetStandardColorSpaceProfileW() returns %d (GLE=%d)\n", ret, GetLastError() );
+ "GetStandardColorSpaceProfileW() returns %d (GLE=%lu)\n", ret, GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 3rd param, */
@@ -572,12 +567,13 @@ static void test_GetStandardColorSpaceProfileW( WCHAR *standardprofileW )
ok( !ret || broken(ret) /* win98 */, "GetStandardColorSpaceProfileW succeeded\n" );
ok( GetLastError() == ERROR_INSUFFICIENT_BUFFER ||
broken(GetLastError() == 0xfaceabee) /* win98 */,
- "GetStandardColorSpaceProfileW() returns GLE=%u\n", GetLastError() );
+ "GetStandardColorSpaceProfileW() returns GLE=%lu\n", GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 4th param, */
ret = pGetStandardColorSpaceProfileW(NULL, LCS_sRGB, newprofile, NULL);
- ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER, "GetStandardColorSpaceProfileW() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER, "GetStandardColorSpaceProfileW() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = 0;
SetLastError(0xfaceabee); /* dereferenced 4th param. */
@@ -586,7 +582,7 @@ static void test_GetStandardColorSpaceProfileW( WCHAR *standardprofileW )
ok( GetLastError() == ERROR_MORE_DATA ||
GetLastError() == ERROR_INSUFFICIENT_BUFFER ||
broken(GetLastError() == 0xfaceabee) /* win98 */,
- "GetStandardColorSpaceProfileW() returns GLE=%u\n", GetLastError() );
+ "GetStandardColorSpaceProfileW() returns GLE=%lu\n", GetLastError() );
/* Several invalid parameter checks: */
@@ -594,11 +590,12 @@ static void test_GetStandardColorSpaceProfileW( WCHAR *standardprofileW )
SetLastError(0xfaceabee); /* 1st, maybe 2nd and then dereferenced 4th param, */
ret = pGetStandardColorSpaceProfileW(machineW, 0, newprofile, &size);
ok( !ret && (GetLastError() == ERROR_INVALID_PARAMETER || GetLastError() == ERROR_NOT_SUPPORTED),
- "GetStandardColorSpaceProfileW() returns %d (GLE=%d)\n", ret, GetLastError() );
+ "GetStandardColorSpaceProfileW() returns %d (GLE=%lu)\n", ret, GetLastError() );
SetLastError(0xfaceabee); /* maybe 2nd and then 4th param, */
ret = pGetStandardColorSpaceProfileW(NULL, 0, newprofile, NULL);
- ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER, "GetStandardColorSpaceProfileW() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER, "GetStandardColorSpaceProfileW() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = 0;
SetLastError(0xfaceabee); /* maybe 2nd, then 3rd and dereferenced 4th param, */
@@ -607,24 +604,25 @@ static void test_GetStandardColorSpaceProfileW( WCHAR *standardprofileW )
ok( GetLastError() == ERROR_INSUFFICIENT_BUFFER ||
GetLastError() == ERROR_FILE_NOT_FOUND ||
broken(GetLastError() == 0xfaceabee) /* win98 */,
- "GetStandardColorSpaceProfileW() returns GLE=%u\n", GetLastError() );
+ "GetStandardColorSpaceProfileW() returns GLE=%lu\n", GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* maybe 2nd param. */
ret = pGetStandardColorSpaceProfileW(NULL, 0, newprofile, &size);
- if (!ret) ok( GetLastError() == ERROR_FILE_NOT_FOUND, "GetStandardColorSpaceProfileW() returns %d (GLE=%d)\n", ret, GetLastError() );
+ if (!ret) ok( GetLastError() == ERROR_FILE_NOT_FOUND, "GetStandardColorSpaceProfileW() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
else
{
WideCharToMultiByte(CP_ACP, 0, newprofile, -1, newprofileA, sizeof(newprofileA), NULL, NULL);
ok( !lstrcmpiA( newprofileA, "" ) && GetLastError() == 0xfaceabee,
- "GetStandardColorSpaceProfileW() returns %d (GLE=%d)\n", ret, GetLastError() );
+ "GetStandardColorSpaceProfileW() returns %d (GLE=%lu)\n", ret, GetLastError() );
}
/* Functional checks */
size = sizeof(oldprofile);
ret = pGetStandardColorSpaceProfileW( NULL, LCS_sRGB, oldprofile, &size );
- ok( ret, "GetStandardColorSpaceProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "GetStandardColorSpaceProfileW() failed (%lu)\n", GetLastError() );
SetLastError(0xdeadbeef);
ret = pSetStandardColorSpaceProfileW( NULL, LCS_sRGB, standardprofileW );
@@ -633,14 +631,14 @@ static void test_GetStandardColorSpaceProfileW( WCHAR *standardprofileW )
skip("Not enough rights for SetStandardColorSpaceProfileW\n");
return;
}
- ok( ret, "SetStandardColorSpaceProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "SetStandardColorSpaceProfileW() failed (%lu)\n", GetLastError() );
size = sizeof(newprofile);
ret = pGetStandardColorSpaceProfileW( NULL, LCS_sRGB, newprofile, &size );
- ok( ret, "GetStandardColorSpaceProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "GetStandardColorSpaceProfileW() failed (%lu)\n", GetLastError() );
ret = pSetStandardColorSpaceProfileW( NULL, LCS_sRGB, oldprofile );
- ok( ret, "SetStandardColorSpaceProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "SetStandardColorSpaceProfileW() failed (%lu)\n", GetLastError() );
}
static void test_EnumColorProfilesA( char *standardprofile )
@@ -663,7 +661,7 @@ static void test_EnumColorProfilesA( char *standardprofile )
SetLastError( 0xdeadbeef );
ret = pEnumColorProfilesA( NULL, &record, NULL, &total, &number );
ok( !ret, "EnumColorProfilesA succeeded\n" );
- if (have_color_profile) ok( GetLastError() == ERROR_INSUFFICIENT_BUFFER, "got %u\n", GetLastError() );
+ if (have_color_profile) ok( GetLastError() == ERROR_INSUFFICIENT_BUFFER, "got %lu\n", GetLastError() );
buffer = HeapAlloc( GetProcessHeap(), 0, total );
size = total;
@@ -678,7 +676,7 @@ static void test_EnumColorProfilesA( char *standardprofile )
ret = pEnumColorProfilesA( NULL, &record, buffer, &size, &number );
todo_wine_if (!have_color_profile)
- ok( ret, "EnumColorProfilesA failed %u\n", GetLastError() );
+ ok( ret, "EnumColorProfilesA failed %lu\n", GetLastError() );
size = 0;
ret = pEnumColorProfilesA( NULL, &record, buffer, &size, &number );
@@ -689,7 +687,7 @@ static void test_EnumColorProfilesA( char *standardprofile )
size = total;
ret = pEnumColorProfilesA( NULL, &record, buffer, &size, &number );
todo_wine_if (!have_color_profile)
- ok( ret, "EnumColorProfilesA failed %u\n", GetLastError() );
+ ok( ret, "EnumColorProfilesA failed %lu\n", GetLastError() );
HeapFree( GetProcessHeap(), 0, buffer );
}
@@ -714,7 +712,7 @@ static void test_EnumColorProfilesW( WCHAR *standardprofileW )
SetLastError( 0xdeadbeef );
ret = pEnumColorProfilesW( NULL, &record, NULL, &total, &number );
ok( !ret, "EnumColorProfilesW succeeded\n" );
- if (have_color_profile) ok( GetLastError() == ERROR_INSUFFICIENT_BUFFER, "got %u\n", GetLastError() );
+ if (have_color_profile) ok( GetLastError() == ERROR_INSUFFICIENT_BUFFER, "got %lu\n", GetLastError() );
buffer = HeapAlloc( GetProcessHeap(), 0, total * sizeof(WCHAR) );
size = total;
@@ -729,7 +727,7 @@ static void test_EnumColorProfilesW( WCHAR *standardprofileW )
ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number );
todo_wine_if (!have_color_profile)
- ok( ret, "EnumColorProfilesW failed %u\n", GetLastError() );
+ ok( ret, "EnumColorProfilesW failed %lu\n", GetLastError() );
size = 0;
ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number );
@@ -740,7 +738,7 @@ static void test_EnumColorProfilesW( WCHAR *standardprofileW )
size = total;
ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number );
todo_wine_if (!have_color_profile)
- ok( ret, "EnumColorProfilesW failed %u\n", GetLastError() );
+ ok( ret, "EnumColorProfilesW failed %lu\n", GetLastError() );
HeapFree( GetProcessHeap(), 0, buffer );
}
@@ -752,18 +750,18 @@ static void test_InstallColorProfileA( char *standardprofile, char *testprofile
/* Parameter checks */
ret = pInstallColorProfileA( NULL, NULL );
- ok( !ret, "InstallColorProfileA() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "InstallColorProfileA() succeeded (%lu)\n", GetLastError() );
ret = pInstallColorProfileA( machine, NULL );
- ok( !ret, "InstallColorProfileA() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "InstallColorProfileA() succeeded (%lu)\n", GetLastError() );
ret = pInstallColorProfileA( NULL, machine );
- ok( !ret, "InstallColorProfileA() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "InstallColorProfileA() succeeded (%lu)\n", GetLastError() );
if (standardprofile)
{
ret = pInstallColorProfileA( NULL, standardprofile );
- ok( ret, "InstallColorProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "InstallColorProfileA() failed (%lu)\n", GetLastError() );
}
/* Functional checks */
@@ -781,10 +779,10 @@ static void test_InstallColorProfileA( char *standardprofile, char *testprofile
skip("Not enough rights for InstallColorProfileA\n");
return;
}
- ok( ret, "InstallColorProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "InstallColorProfileA() failed (%lu)\n", GetLastError() );
ret = pGetColorDirectoryA( NULL, dest, &size );
- ok( ret, "GetColorDirectoryA() failed (%d)\n", GetLastError() );
+ ok( ret, "GetColorDirectoryA() failed (%lu)\n", GetLastError() );
MSCMS_basenameA( testprofile, base );
@@ -793,11 +791,11 @@ static void test_InstallColorProfileA( char *standardprofile, char *testprofile
/* Check if the profile is really there */
handle = CreateFileA( dest, 0 , 0, NULL, OPEN_EXISTING, 0, NULL );
- ok( handle != INVALID_HANDLE_VALUE, "Couldn't find the profile (%d)\n", GetLastError() );
+ ok( handle != INVALID_HANDLE_VALUE, "Couldn't find the profile (%lu)\n", GetLastError() );
CloseHandle( handle );
ret = pUninstallColorProfileA( NULL, dest, TRUE );
- ok( ret, "UninstallColorProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "UninstallColorProfileA() failed (%lu)\n", GetLastError() );
}
}
@@ -808,18 +806,18 @@ static void test_InstallColorProfileW( WCHAR *standardprofileW, WCHAR *testprofi
/* Parameter checks */
ret = pInstallColorProfileW( NULL, NULL );
- ok( !ret, "InstallColorProfileW() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "InstallColorProfileW() succeeded (%lu)\n", GetLastError() );
ret = pInstallColorProfileW( machineW, NULL );
- ok( !ret, "InstallColorProfileW() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "InstallColorProfileW() succeeded (%lu)\n", GetLastError() );
ret = pInstallColorProfileW( NULL, machineW );
- ok( !ret, "InstallColorProfileW() failed (%d)\n", GetLastError() );
+ ok( !ret, "InstallColorProfileW() failed (%lu)\n", GetLastError() );
if (standardprofileW)
{
ret = pInstallColorProfileW( NULL, standardprofileW );
- ok( ret, "InstallColorProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "InstallColorProfileW() failed (%lu)\n", GetLastError() );
}
/* Functional checks */
@@ -837,10 +835,10 @@ static void test_InstallColorProfileW( WCHAR *standardprofileW, WCHAR *testprofi
skip("Not enough rights for InstallColorProfileW\n");
return;
}
- ok( ret, "InstallColorProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "InstallColorProfileW() failed (%lu)\n", GetLastError() );
ret = pGetColorDirectoryW( NULL, dest, &size );
- ok( ret, "GetColorDirectoryW() failed (%d)\n", GetLastError() );
+ ok( ret, "GetColorDirectoryW() failed (%lu)\n", GetLastError() );
MSCMS_basenameW( testprofileW, base );
@@ -849,11 +847,11 @@ static void test_InstallColorProfileW( WCHAR *standardprofileW, WCHAR *testprofi
/* Check if the profile is really there */
handle = CreateFileW( dest, 0 , 0, NULL, OPEN_EXISTING, 0, NULL );
- ok( handle != INVALID_HANDLE_VALUE, "Couldn't find the profile (%d)\n", GetLastError() );
+ ok( handle != INVALID_HANDLE_VALUE, "Couldn't find the profile (%lu)\n", GetLastError() );
CloseHandle( handle );
ret = pUninstallColorProfileW( NULL, dest, TRUE );
- ok( ret, "UninstallColorProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "UninstallColorProfileW() failed (%lu)\n", GetLastError() );
}
}
@@ -871,27 +869,27 @@ static void test_IsColorProfileTagPresent( char *standardprofile )
profile.cbDataSize = strlen(standardprofile);
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
/* Parameter checks */
tag = 0;
ret = pIsColorProfileTagPresent( handle, tag, &present );
- ok( !(ret && present), "IsColorProfileTagPresent() succeeded (%d)\n", GetLastError() );
+ ok( !(ret && present), "IsColorProfileTagPresent() succeeded (%lu)\n", GetLastError() );
tag = 0x63707274; /* 'cprt' */
ret = pIsColorProfileTagPresent( NULL, tag, &present );
- ok( !ret, "IsColorProfileTagPresent() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "IsColorProfileTagPresent() succeeded (%lu)\n", GetLastError() );
ret = pIsColorProfileTagPresent( handle, tag, NULL );
- ok( !ret, "IsColorProfileTagPresent() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "IsColorProfileTagPresent() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
ret = pIsColorProfileTagPresent( handle, tag, &present );
- ok( ret && present, "IsColorProfileTagPresent() failed (%d)\n", GetLastError() );
+ ok( ret && present, "IsColorProfileTagPresent() failed (%lu)\n", GetLastError() );
pCloseColorProfile( handle );
}
@@ -910,16 +908,16 @@ static void test_OpenColorProfileA( char *standardprofile )
/* Parameter checks */
handle = pOpenColorProfileA( NULL, 0, 0, 0 );
- ok( handle == NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileA( &profile, 0, 0, 0 );
- ok( handle == NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, 0 );
- ok( handle == NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileA( &profile, PROFILE_READWRITE, 0, 0 );
- ok( handle == NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
ok ( !pCloseColorProfile( NULL ), "CloseColorProfile() succeeded\n" );
@@ -929,31 +927,31 @@ static void test_OpenColorProfileA( char *standardprofile )
profile.cbDataSize = strlen(standardprofile);
handle = pOpenColorProfileA( &profile, 0, 0, 0 );
- ok( handle == NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, 0 );
- ok( handle == NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileA( &profile, PROFILE_READ|PROFILE_READWRITE, 0, 0 );
- ok( handle == NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
/* Functional checks */
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
ret = pCloseColorProfile( handle );
- ok( ret, "CloseColorProfile() failed (%d)\n", GetLastError() );
+ ok( ret, "CloseColorProfile() failed (%lu)\n", GetLastError() );
profile.dwType = PROFILE_FILENAME;
profile.pProfileData = (void *)"sRGB Color Space Profile.icm";
profile.cbDataSize = sizeof("sRGB Color Space Profile.icm");
handle = pOpenColorProfileA( &profile, PROFILE_READ, FILE_SHARE_READ, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
ret = pCloseColorProfile( handle );
- ok( ret, "CloseColorProfile() failed (%d)\n", GetLastError() );
+ ok( ret, "CloseColorProfile() failed (%lu)\n", GetLastError() );
}
}
@@ -970,16 +968,16 @@ static void test_OpenColorProfileW( WCHAR *standardprofileW )
/* Parameter checks */
handle = pOpenColorProfileW( NULL, 0, 0, 0 );
- ok( handle == NULL, "OpenColorProfileW() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileW() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileW( &profile, 0, 0, 0 );
- ok( handle == NULL, "OpenColorProfileW() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileW() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileW( &profile, PROFILE_READ, 0, 0 );
- ok( handle == NULL, "OpenColorProfileW() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileW() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileW( &profile, PROFILE_READWRITE, 0, 0 );
- ok( handle == NULL, "OpenColorProfileW() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileW() failed (%lu)\n", GetLastError() );
ok ( !pCloseColorProfile( NULL ), "CloseColorProfile() succeeded\n" );
@@ -989,21 +987,21 @@ static void test_OpenColorProfileW( WCHAR *standardprofileW )
profile.cbDataSize = lstrlenW(standardprofileW) * sizeof(WCHAR);
handle = pOpenColorProfileW( &profile, 0, 0, 0 );
- ok( handle == NULL, "OpenColorProfileW() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileW() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileW( &profile, PROFILE_READ, 0, 0 );
- ok( handle == NULL, "OpenColorProfileW() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileW() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileW( &profile, PROFILE_READ|PROFILE_READWRITE, 0, 0 );
- ok( handle == NULL, "OpenColorProfileW() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileW() failed (%lu)\n", GetLastError() );
/* Functional checks */
handle = pOpenColorProfileW( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileW() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileW() failed (%lu)\n", GetLastError() );
ret = pCloseColorProfile( handle );
- ok( ret, "CloseColorProfile() failed (%d)\n", GetLastError() );
+ ok( ret, "CloseColorProfile() failed (%lu)\n", GetLastError() );
}
}
@@ -1027,41 +1025,41 @@ static void test_SetColorProfileElement( char *testprofile )
/* Parameter checks */
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
ret = pSetColorProfileElement( handle, tag, 0, &size, data );
- ok( !ret, "SetColorProfileElement() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileElement() succeeded (%lu)\n", GetLastError() );
pCloseColorProfile( handle );
handle = pOpenColorProfileA( &profile, PROFILE_READWRITE, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
ret = pSetColorProfileElement( NULL, 0, 0, NULL, NULL );
- ok( !ret, "SetColorProfileElement() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileElement() succeeded (%lu)\n", GetLastError() );
ret = pSetColorProfileElement( handle, 0, 0, NULL, NULL );
- ok( !ret, "SetColorProfileElement() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileElement() succeeded (%lu)\n", GetLastError() );
ret = pSetColorProfileElement( handle, tag, 0, NULL, NULL );
- ok( !ret, "SetColorProfileElement() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileElement() succeeded (%lu)\n", GetLastError() );
ret = pSetColorProfileElement( handle, tag, 0, &size, NULL );
- ok( !ret, "SetColorProfileElement() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileElement() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
size = sizeof(data);
ret = pSetColorProfileElement( handle, tag, 0, &size, data );
- ok( ret, "SetColorProfileElement() failed %u\n", GetLastError() );
+ ok( ret, "SetColorProfileElement() failed %lu\n", GetLastError() );
size = sizeof(buffer);
ret = pGetColorProfileElement( handle, tag, 0, &size, buffer, &ref );
- ok( ret, "GetColorProfileElement() failed %u\n", GetLastError() );
+ ok( ret, "GetColorProfileElement() failed %lu\n", GetLastError() );
ok( size > 0, "wrong size\n" );
ok( !memcmp( data, buffer, sizeof(data) ),
- "Unexpected tag data, expected %s, got %s (%u)\n", data, buffer, GetLastError() );
+ "Unexpected tag data, expected %s, got %s (%lu)\n", data, buffer, GetLastError() );
pCloseColorProfile( handle );
}
@@ -1105,32 +1103,32 @@ static void test_SetColorProfileHeader( char *testprofile )
/* Parameter checks */
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
ret = pSetColorProfileHeader( handle, &header );
- ok( !ret, "SetColorProfileHeader() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileHeader() succeeded (%lu)\n", GetLastError() );
pCloseColorProfile( handle );
handle = pOpenColorProfileA( &profile, PROFILE_READWRITE, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
ret = pSetColorProfileHeader( NULL, NULL );
- ok( !ret, "SetColorProfileHeader() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileHeader() succeeded (%lu)\n", GetLastError() );
ret = pSetColorProfileHeader( handle, NULL );
- ok( !ret, "SetColorProfileHeader() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileHeader() succeeded (%lu)\n", GetLastError() );
ret = pSetColorProfileHeader( NULL, &header );
- ok( !ret, "SetColorProfileHeader() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileHeader() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
ret = pSetColorProfileHeader( handle, &header );
- ok( ret, "SetColorProfileHeader() failed (%d)\n", GetLastError() );
+ ok( ret, "SetColorProfileHeader() failed (%lu)\n", GetLastError() );
ret = pGetColorProfileHeader( handle, &header );
- ok( ret, "GetColorProfileHeader() failed (%d)\n", GetLastError() );
+ ok( ret, "GetColorProfileHeader() failed (%lu)\n", GetLastError() );
ok( !memcmp( &header, rgbheader, sizeof(rgbheader) ), "Unexpected header data\n" );
@@ -1145,10 +1143,10 @@ static void test_UninstallColorProfileA( char *testprofile )
/* Parameter checks */
ret = pUninstallColorProfileA( NULL, NULL, FALSE );
- ok( !ret, "UninstallColorProfileA() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "UninstallColorProfileA() succeeded (%lu)\n", GetLastError() );
ret = pUninstallColorProfileA( machine, NULL, FALSE );
- ok( !ret, "UninstallColorProfileA() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "UninstallColorProfileA() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
@@ -1165,10 +1163,10 @@ static void test_UninstallColorProfileA( char *testprofile )
skip("Not enough rights for InstallColorProfileA\n");
return;
}
- ok( ret, "InstallColorProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "InstallColorProfileA() failed (%lu)\n", GetLastError() );
ret = pGetColorDirectoryA( NULL, dest, &size );
- ok( ret, "GetColorDirectoryA() failed (%d)\n", GetLastError() );
+ ok( ret, "GetColorDirectoryA() failed (%lu)\n", GetLastError() );
MSCMS_basenameA( testprofile, base );
@@ -1176,11 +1174,11 @@ static void test_UninstallColorProfileA( char *testprofile )
lstrcatA( dest, base );
ret = pUninstallColorProfileA( NULL, dest, TRUE );
- ok( ret, "UninstallColorProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "UninstallColorProfileA() failed (%lu)\n", GetLastError() );
/* Check if the profile is really gone */
handle = CreateFileA( dest, 0 , 0, NULL, OPEN_EXISTING, 0, NULL );
- ok( handle == INVALID_HANDLE_VALUE, "Found the profile (%d)\n", GetLastError() );
+ ok( handle == INVALID_HANDLE_VALUE, "Found the profile (%lu)\n", GetLastError() );
CloseHandle( handle );
}
}
@@ -1192,10 +1190,10 @@ static void test_UninstallColorProfileW( WCHAR *testprofileW )
/* Parameter checks */
ret = pUninstallColorProfileW( NULL, NULL, FALSE );
- ok( !ret, "UninstallColorProfileW() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "UninstallColorProfileW() succeeded (%lu)\n", GetLastError() );
ret = pUninstallColorProfileW( machineW, NULL, FALSE );
- ok( !ret, "UninstallColorProfileW() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "UninstallColorProfileW() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
@@ -1214,10 +1212,10 @@ static void test_UninstallColorProfileW( WCHAR *testprofileW )
skip("Not enough rights for InstallColorProfileW\n");
return;
}
- ok( ret, "InstallColorProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "InstallColorProfileW() failed (%lu)\n", GetLastError() );
ret = pGetColorDirectoryW( NULL, dest, &size );
- ok( ret, "GetColorDirectoryW() failed (%d)\n", GetLastError() );
+ ok( ret, "GetColorDirectoryW() failed (%lu)\n", GetLastError() );
MSCMS_basenameW( testprofileW, base );
@@ -1225,13 +1223,13 @@ static void test_UninstallColorProfileW( WCHAR *testprofileW )
lstrcatW( dest, base );
ret = pUninstallColorProfileW( NULL, dest, TRUE );
- ok( ret, "UninstallColorProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "UninstallColorProfileW() failed (%lu)\n", GetLastError() );
bytes_copied = WideCharToMultiByte(CP_ACP, 0, dest, -1, destA, MAX_PATH, NULL, NULL);
ok( bytes_copied > 0 , "WideCharToMultiByte() returns %d\n", bytes_copied);
/* Check if the profile is really gone */
handle = CreateFileA( destA, 0 , 0, NULL, OPEN_EXISTING, 0, NULL );
- ok( handle == INVALID_HANDLE_VALUE, "Found the profile (%d)\n", GetLastError() );
+ ok( handle == INVALID_HANDLE_VALUE, "Found the profile (%lu)\n", GetLastError() );
CloseHandle( handle );
}
}
@@ -1258,56 +1256,56 @@ static void test_AssociateColorProfileWithDeviceA( char *testprofile )
ret = pAssociateColorProfileWithDeviceA( "machine", testprofile, NULL );
error = GetLastError();
ok( !ret, "AssociateColorProfileWithDevice() succeeded\n" );
- ok( error == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %u\n", error );
+ ok( error == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %lu\n", error );
SetLastError(0xdeadbeef);
ret = pAssociateColorProfileWithDeviceA( "machine", NULL, monitor.DeviceID );
error = GetLastError();
ok( !ret, "AssociateColorProfileWithDevice() succeeded\n" );
- ok( error == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %u\n", error );
+ ok( error == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %lu\n", error );
SetLastError(0xdeadbeef);
ret = pAssociateColorProfileWithDeviceA( "machine", testprofile, monitor.DeviceID );
error = GetLastError();
ok( !ret, "AssociateColorProfileWithDevice() succeeded\n" );
- ok( error == ERROR_NOT_SUPPORTED, "expected ERROR_NOT_SUPPORTED, got %u\n", error );
+ ok( error == ERROR_NOT_SUPPORTED, "expected ERROR_NOT_SUPPORTED, got %lu\n", error );
ret = pInstallColorProfileA( NULL, testprofile );
- ok( ret, "InstallColorProfileA() failed (%u)\n", GetLastError() );
+ ok( ret, "InstallColorProfileA() failed (%lu)\n", GetLastError() );
ret = pGetColorDirectoryA( NULL, profile, &size );
- ok( ret, "GetColorDirectoryA() failed (%d)\n", GetLastError() );
+ ok( ret, "GetColorDirectoryA() failed (%lu)\n", GetLastError() );
MSCMS_basenameA( testprofile, basename );
lstrcatA( profile, "\\" );
lstrcatA( profile, basename );
ret = pAssociateColorProfileWithDeviceA( NULL, profile, monitor.DeviceID );
- ok( ret, "AssociateColorProfileWithDevice() failed (%u)\n", GetLastError() );
+ ok( ret, "AssociateColorProfileWithDevice() failed (%lu)\n", GetLastError() );
SetLastError(0xdeadbeef);
ret = pDisassociateColorProfileFromDeviceA( "machine", profile, NULL );
error = GetLastError();
ok( !ret, "DisassociateColorProfileFromDeviceA() succeeded\n" );
- ok( error == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %u\n", error );
+ ok( error == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %lu\n", error );
SetLastError(0xdeadbeef);
ret = pDisassociateColorProfileFromDeviceA( "machine", NULL, monitor.DeviceID );
error = GetLastError();
ok( !ret, "DisassociateColorProfileFromDeviceA() succeeded\n" );
- ok( error == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %u\n", error );
+ ok( error == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %lu\n", error );
SetLastError(0xdeadbeef);
ret = pDisassociateColorProfileFromDeviceA( "machine", profile, monitor.DeviceID );
error = GetLastError();
ok( !ret, "DisassociateColorProfileFromDeviceA() succeeded\n" );
- ok( error == ERROR_NOT_SUPPORTED, "expected ERROR_NOT_SUPPORTED, got %u\n", error );
+ ok( error == ERROR_NOT_SUPPORTED, "expected ERROR_NOT_SUPPORTED, got %lu\n", error );
ret = pDisassociateColorProfileFromDeviceA( NULL, profile, monitor.DeviceID );
- ok( ret, "DisassociateColorProfileFromDeviceA() failed (%u)\n", GetLastError() );
+ ok( ret, "DisassociateColorProfileFromDeviceA() failed (%lu)\n", GetLastError() );
ret = pUninstallColorProfileA( NULL, profile, TRUE );
- ok( ret, "UninstallColorProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "UninstallColorProfileA() failed (%lu)\n", GetLastError() );
}
else
skip("Unable to obtain monitor name\n");
@@ -1343,17 +1341,17 @@ static void test_CreateMultiProfileTransform( char *standardprofile, char *testp
profile.cbDataSize = strlen(standardprofile);
handle[0] = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle[0] != NULL, "got %u\n", GetLastError() );
+ ok( handle[0] != NULL, "got %lu\n", GetLastError() );
profile.dwType = PROFILE_FILENAME;
profile.pProfileData = testprofile;
profile.cbDataSize = strlen(testprofile);
handle[1] = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle[1] != NULL, "got %u\n", GetLastError() );
+ ok( handle[1] != NULL, "got %lu\n", GetLastError() );
transform = pCreateMultiProfileTransform( handle, 2, intents, 2, 0, 0 );
- ok( transform != NULL, "got %u\n", GetLastError() );
+ ok( transform != NULL, "got %lu\n", GetLastError() );
pDeleteColorTransform( transform );
pCloseColorProfile( handle[0] );
@@ -1390,7 +1388,7 @@ START_TEST(profile)
/* See if we can find the standard color profile */
ret = GetSystemDirectoryA( profilefile1, sizeof(profilefile1) );
- ok( ret > 0, "GetSystemDirectoryA() returns %d, LastError = %d\n", ret, GetLastError());
+ ok( ret > 0, "GetSystemDirectoryA() returns %d, LastError = %lu\n", ret, GetLastError());
ok(profilefile1[0] && lstrlenA(profilefile1) < MAX_PATH,
"Expected length between 0 and MAX_PATH, got %d\n", lstrlenA(profilefile1));
MultiByteToWideChar(CP_ACP, 0, profilefile1, -1, profilefile1W, MAX_PATH);
diff --git a/dlls/mscms/transform.c b/dlls/mscms/transform.c
index 8296341f7b7..0d48e217d66 100644
--- a/dlls/mscms/transform.c
+++ b/dlls/mscms/transform.c
@@ -48,13 +48,13 @@ static DWORD from_bmformat( BMFORMAT format )
default:
if (!quietfixme)
{
- FIXME( "unhandled bitmap format %08x\n", format );
+ FIXME( "unhandled bitmap format %#x\n", format );
quietfixme = TRUE;
}
ret = TYPE_RGB_8;
break;
}
- TRACE( "color space: %08x -> %08x\n", format, ret );
+ TRACE( "color space: %#x -> %#lx\n", format, ret );
return ret;
}
@@ -76,7 +76,7 @@ static DWORD from_type( COLORTYPE type )
break;
}
- TRACE( "color type: %08x -> %08x\n", type, ret );
+ TRACE( "color type: %#x -> %#lx\n", type, ret );
return ret;
}
@@ -85,13 +85,12 @@ static DWORD from_type( COLORTYPE type )
*
* See CreateColorTransformW.
*/
-HTRANSFORM WINAPI CreateColorTransformA( LPLOGCOLORSPACEA space, HPROFILE dest,
- HPROFILE target, DWORD flags )
+HTRANSFORM WINAPI CreateColorTransformA( LPLOGCOLORSPACEA space, HPROFILE dest, HPROFILE target, DWORD flags )
{
LOGCOLORSPACEW spaceW;
DWORD len;
- TRACE( "( %p, %p, %p, 0x%08x )\n", space, dest, target, flags );
+ TRACE( "( %p, %p, %p, %#lx )\n", space, dest, target, flags );
if (!space || !dest) return FALSE;
@@ -119,8 +118,7 @@ HTRANSFORM WINAPI CreateColorTransformA( LPLOGCOLORSPACEA space, HPROFILE dest,
* Success: Handle to a transform.
* Failure: NULL
*/
-HTRANSFORM WINAPI CreateColorTransformW( LPLOGCOLORSPACEW space, HPROFILE dest,
- HPROFILE target, DWORD flags )
+HTRANSFORM WINAPI CreateColorTransformW( LPLOGCOLORSPACEW space, HPROFILE dest, HPROFILE target, DWORD flags )
{
HTRANSFORM ret = NULL;
cmsHTRANSFORM transform;
@@ -129,7 +127,7 @@ HTRANSFORM WINAPI CreateColorTransformW( LPLOGCOLORSPACEW space, HPROFILE dest,
cmsHPROFILE input;
int intent;
- TRACE( "( %p, %p, %p, 0x%08x )\n", space, dest, target, flags );
+ TRACE( "( %p, %p, %p, %#lx )\n", space, dest, target, flags );
if (!space || !(dst = grab_profile( dest ))) return FALSE;
@@ -140,7 +138,7 @@ HTRANSFORM WINAPI CreateColorTransformW( LPLOGCOLORSPACEW space, HPROFILE dest,
}
intent = space->lcsIntent > 3 ? INTENT_PERCEPTUAL : space->lcsIntent;
- TRACE( "lcsIntent: %x\n", space->lcsIntent );
+ TRACE( "lcsIntent: %#lx\n", space->lcsIntent );
TRACE( "lcsCSType: %s\n", dbgstr_tag( space->lcsCSType ) );
TRACE( "lcsFilename: %s\n", debugstr_w( space->lcsFilename ) );
@@ -186,8 +184,7 @@ HTRANSFORM WINAPI CreateMultiProfileTransform( PHPROFILE profiles, DWORD nprofil
cmsHTRANSFORM transform;
struct profile *profile0, *profile1;
- TRACE( "( %p, 0x%08x, %p, 0x%08x, 0x%08x, 0x%08x )\n",
- profiles, nprofiles, intents, nintents, flags, cmm );
+ TRACE( "( %p, %#lx, %p, %lu, %#lx, %#lx )\n", profiles, nprofiles, intents, nintents, flags, cmm );
if (!profiles || !nprofiles || !intents) return NULL;
@@ -265,7 +262,7 @@ BOOL WINAPI TranslateBitmapBits( HTRANSFORM handle, PVOID srcbits, BMFORMAT inpu
BOOL ret;
cmsHTRANSFORM transform = grab_transform( handle );
- TRACE( "( %p, %p, 0x%08x, 0x%08x, 0x%08x, 0x%08x, %p, 0x%08x, 0x%08x, %p, 0x%08x )\n",
+ TRACE( "( %p, %p, %#x, %lu, %lu, %lu, %p, %#x, %lu, %p, %#lx )\n",
handle, srcbits, input, width, height, inputstride, destbits, output,
outputstride, callback, data );
@@ -300,7 +297,7 @@ BOOL WINAPI TranslateColors( HTRANSFORM handle, PCOLOR in, DWORD count,
unsigned int i;
cmsHTRANSFORM transform = grab_transform( handle );
- TRACE( "( %p, %p, %d, %d, %p, %d )\n", handle, in, count, input_type, out, output_type );
+ TRACE( "( %p, %p, %lu, %d, %p, %d )\n", handle, in, count, input_type, out, output_type );
if (!transform) return FALSE;
--
2.30.2
1
0
Signed-off-by: Hans Leidekker <hans(a)codeweavers.com>
---
dlls/mscms/Makefile.in | 1 -
dlls/mscms/mscms_main.c | 4 +-
dlls/mscms/profile.c | 38 ++--
dlls/mscms/stub.c | 30 +--
dlls/mscms/tests/Makefile.in | 1 -
dlls/mscms/tests/profile.c | 373 +++++++++++++++++------------------
dlls/mscms/transform.c | 25 ++-
7 files changed, 232 insertions(+), 240 deletions(-)
diff --git a/dlls/mscms/Makefile.in b/dlls/mscms/Makefile.in
index f28f90327f4..d57cc54e3c6 100644
--- a/dlls/mscms/Makefile.in
+++ b/dlls/mscms/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = mscms.dll
IMPORTLIB = mscms
IMPORTS = $(LCMS2_PE_LIBS) shlwapi advapi32
diff --git a/dlls/mscms/mscms_main.c b/dlls/mscms/mscms_main.c
index 1ea2eaef832..8c7e7c9e498 100644
--- a/dlls/mscms/mscms_main.c
+++ b/dlls/mscms/mscms_main.c
@@ -37,9 +37,9 @@ static void lcms_error_handler(cmsContext ctx, cmsUInt32Number error, const char
TRACE("%u %s\n", error, debugstr_a(text));
}
-BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
+BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, void *reserved )
{
- TRACE( "(%p, %d, %p)\n", hinst, reason, reserved );
+ TRACE( "(%p, %lu, %p)\n", hinst, reason, reserved );
switch (reason)
{
diff --git a/dlls/mscms/profile.c b/dlls/mscms/profile.c
index 5bc5df0712d..b6c2b5cb797 100644
--- a/dlls/mscms/profile.c
+++ b/dlls/mscms/profile.c
@@ -327,7 +327,7 @@ BOOL WINAPI GetColorProfileElement( HPROFILE handle, TAGTYPE type, DWORD offset,
BOOL ret;
struct profile *profile = grab_profile( handle );
- TRACE( "( %p, 0x%08x, %d, %p, %p, %p )\n", handle, type, offset, size, buffer, ref );
+ TRACE( "( %p, %#lx, %lu, %p, %p, %p )\n", handle, type, offset, size, buffer, ref );
if (!profile) return FALSE;
@@ -365,7 +365,7 @@ BOOL WINAPI GetColorProfileElementTag( HPROFILE handle, DWORD index, PTAGTYPE ty
struct profile *profile = grab_profile( handle );
struct tag_entry tag;
- TRACE( "( %p, %d, %p )\n", handle, index, type );
+ TRACE( "( %p, %lu, %p )\n", handle, index, type );
if (!profile) return FALSE;
@@ -506,7 +506,7 @@ BOOL WINAPI GetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile
BOOL ret = FALSE;
DWORD sizeW;
- TRACE( "( 0x%08x, %p, %p )\n", id, profile, size );
+ TRACE( "( %#lx, %p, %p )\n", id, profile, size );
if (machine)
{
@@ -565,7 +565,7 @@ BOOL WINAPI GetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profi
WCHAR rgbprofile[MAX_PATH];
DWORD len = sizeof(rgbprofile);
- TRACE( "( 0x%08x, %p, %p )\n", id, profile, size );
+ TRACE( "( %#lx, %p, %p )\n", id, profile, size );
if (machine)
{
@@ -661,15 +661,15 @@ static BOOL match_profile( PENUMTYPEW rec, PPROFILEHEADER hdr )
}
if (rec->dwFields & ET_MEDIATYPE)
{
- FIXME( "ET_MEDIATYPE: 0x%08x\n", rec->dwMediaType );
+ FIXME( "ET_MEDIATYPE: %#lx\n", rec->dwMediaType );
}
if (rec->dwFields & ET_DITHERMODE)
{
- FIXME( "ET_DITHERMODE: 0x%08x\n", rec->dwDitheringMode );
+ FIXME( "ET_DITHERMODE: %#lx\n", rec->dwDitheringMode );
}
if (rec->dwFields & ET_RESOLUTION)
{
- FIXME( "ET_RESOLUTION: 0x%08x, 0x%08x\n",
+ FIXME( "ET_RESOLUTION: %#lx, %#lx\n",
rec->dwResolution[0], rec->dwResolution[1] );
}
if (rec->dwFields & ET_DEVICECLASS)
@@ -708,7 +708,7 @@ static BOOL match_profile( PENUMTYPEW rec, PPROFILEHEADER hdr )
}
if (rec->dwFields & ET_PROFILEFLAGS)
{
- TRACE( "ET_PROFILEFLAGS: 0x%08x\n", rec->dwProfileFlags );
+ TRACE( "ET_PROFILEFLAGS: %#lx\n", rec->dwProfileFlags );
if (rec->dwProfileFlags != hdr->phProfileFlags) return FALSE;
}
if (rec->dwFields & ET_MANUFACTURER)
@@ -723,14 +723,14 @@ static BOOL match_profile( PENUMTYPEW rec, PPROFILEHEADER hdr )
}
if (rec->dwFields & ET_ATTRIBUTES)
{
- TRACE( "ET_ATTRIBUTES: 0x%08x, 0x%08x\n",
+ TRACE( "ET_ATTRIBUTES: %#lx, %#lx\n",
rec->dwAttributes[0], rec->dwAttributes[1] );
if (rec->dwAttributes[0] != hdr->phAttributes[0] ||
rec->dwAttributes[1] != hdr->phAttributes[1]) return FALSE;
}
if (rec->dwFields & ET_RENDERINGINTENT)
{
- TRACE( "ET_RENDERINGINTENT: 0x%08x\n", rec->dwRenderingIntent );
+ TRACE( "ET_RENDERINGINTENT: %#lx\n", rec->dwRenderingIntent );
if (rec->dwRenderingIntent != hdr->phRenderingIntent) return FALSE;
}
if (rec->dwFields & ET_CREATOR)
@@ -1084,7 +1084,7 @@ BOOL WINAPI IsColorProfileTagPresent( HPROFILE handle, TAGTYPE type, PBOOL prese
struct profile *profile = grab_profile( handle );
struct tag_entry tag;
- TRACE( "( %p, 0x%08x, %p )\n", handle, type, present );
+ TRACE( "( %p, %#lx, %p )\n", handle, type, present );
if (!profile) return FALSE;
@@ -1153,7 +1153,7 @@ BOOL WINAPI SetColorProfileElement( HPROFILE handle, TAGTYPE type, DWORD offset,
BOOL ret;
struct profile *profile = grab_profile( handle );
- TRACE( "( %p, 0x%08x, %d, %p, %p )\n", handle, type, offset, size, buffer );
+ TRACE( "( %p, %#lx, %lu, %p, %p )\n", handle, type, offset, size, buffer );
if (!profile) return FALSE;
@@ -1271,7 +1271,7 @@ HPROFILE WINAPI OpenColorProfileA( PPROFILE profile, DWORD access, DWORD sharing
HPROFILE handle = NULL;
PROFILE profileW;
- TRACE( "( %p, 0x%08x, 0x%08x, 0x%08x )\n", profile, access, sharing, creation );
+ TRACE( "( %p, %#lx, %#lx, %#lx )\n", profile, access, sharing, creation );
if (!profile || !profile->pProfileData) return NULL;
@@ -1316,7 +1316,7 @@ HPROFILE WINAPI OpenColorProfileW( PPROFILE profile, DWORD access, DWORD sharing
HANDLE handle = INVALID_HANDLE_VALUE;
DWORD size;
- TRACE( "( %p, 0x%08x, 0x%08x, 0x%08x )\n", profile, access, sharing, creation );
+ TRACE( "( %p, %#lx, %#lx, %#lx )\n", profile, access, sharing, creation );
if (!profile || !profile->pProfileData) return NULL;
@@ -1366,7 +1366,7 @@ HPROFILE WINAPI OpenColorProfileW( PPROFILE profile, DWORD access, DWORD sharing
}
if (handle == INVALID_HANDLE_VALUE)
{
- WARN( "Unable to open color profile %u\n", GetLastError() );
+ WARN( "Unable to open color profile %lu\n", GetLastError() );
return NULL;
}
if ((size = GetFileSize( handle, NULL )) == INVALID_FILE_SIZE)
@@ -1398,7 +1398,7 @@ HPROFILE WINAPI OpenColorProfileW( PPROFILE profile, DWORD access, DWORD sharing
}
else
{
- ERR( "Invalid profile type %u\n", profile->dwType );
+ ERR( "Invalid profile type %lu\n", profile->dwType );
return NULL;
}
@@ -1461,7 +1461,7 @@ BOOL WINAPI WcsGetDefaultColorProfileSize( WCS_PROFILE_MANAGEMENT_SCOPE scope, P
COLORPROFILETYPE type, COLORPROFILESUBTYPE subtype,
DWORD profile_id, PDWORD profile_size)
{
- FIXME( "%d %s %d %d %d %p\n", scope, debugstr_w(device_name), type, subtype, profile_id, profile_size );
+ FIXME( "%d, %s, %d, %d, %lu, %p\n", scope, debugstr_w(device_name), type, subtype, profile_id, profile_size );
SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
return FALSE;
}
@@ -1485,7 +1485,7 @@ HPROFILE WINAPI WcsOpenColorProfileA( PROFILE *cdm, PROFILE *camp, PROFILE *gmmp
PROFILE cdmW, campW = {0}, gmmpW = {0};
HPROFILE ret = NULL;
- TRACE( "%p, %p, %p, %08x, %08x, %08x, %08x\n", cdm, camp, gmmp, access, sharing, creation, flags );
+ TRACE( "%p, %p, %p, %#lx, %#lx, %#lx, %#lx\n", cdm, camp, gmmp, access, sharing, creation, flags );
if (!cdm || !profile_AtoW( cdm, &cdmW )) return NULL;
if (camp && !profile_AtoW( camp, &campW )) goto done;
@@ -1506,7 +1506,7 @@ done:
HPROFILE WINAPI WcsOpenColorProfileW( PROFILE *cdm, PROFILE *camp, PROFILE *gmmp, DWORD access, DWORD sharing,
DWORD creation, DWORD flags )
{
- TRACE( "%p, %p, %p, %08x, %08x, %08x, %08x\n", cdm, camp, gmmp, access, sharing, creation, flags );
+ TRACE( "%p, %p, %p, %#lx, %#lx, %#lx, %#lx\n", cdm, camp, gmmp, access, sharing, creation, flags );
FIXME("no support for WCS profiles\n" );
return OpenColorProfileW( cdm, access, sharing, creation );
diff --git a/dlls/mscms/stub.c b/dlls/mscms/stub.c
index 28c08e20868..6ac777a86f7 100644
--- a/dlls/mscms/stub.c
+++ b/dlls/mscms/stub.c
@@ -35,7 +35,7 @@ BOOL WINAPI CheckBitmapBits( HTRANSFORM transform, PVOID srcbits, BMFORMAT forma
DWORD height, DWORD stride, PBYTE result, PBMCALLBACKFN callback,
LPARAM data )
{
- FIXME( "( %p, %p, 0x%08x, 0x%08x, 0x%08x, 0x%08x, %p, %p, 0x%08lx ) stub\n",
+ FIXME( "( %p, %p, %#x, %#lx, %#lx, %#lx, %p, %p, %#Ix ) stub\n",
transform, srcbits, format, width, height, stride, result, callback, data );
return FALSE;
@@ -44,21 +44,21 @@ BOOL WINAPI CheckBitmapBits( HTRANSFORM transform, PVOID srcbits, BMFORMAT forma
BOOL WINAPI CheckColors( HTRANSFORM transform, PCOLOR colors, DWORD number, COLORTYPE type,
PBYTE result )
{
- FIXME( "( %p, %p, 0x%08x, 0x%08x, %p ) stub\n", transform, colors, number, type, result );
+ FIXME( "( %p, %p, %#lx, %#x, %p ) stub\n", transform, colors, number, type, result );
return FALSE;
}
BOOL WINAPI ConvertColorNameToIndex( HPROFILE profile, PCOLOR_NAME name, PDWORD index, DWORD count )
{
- FIXME( "( %p, %p, %p, 0x%08x ) stub\n", profile, name, index, count );
+ FIXME( "( %p, %p, %p, %#lx ) stub\n", profile, name, index, count );
return FALSE;
}
BOOL WINAPI ConvertIndexToColorName( HPROFILE profile, PDWORD index, PCOLOR_NAME name, DWORD count )
{
- FIXME( "( %p, %p, %p, 0x%08x ) stub\n", profile, index, name, count );
+ FIXME( "( %p, %p, %p, %#lx ) stub\n", profile, index, name, count );
return FALSE;
}
@@ -66,7 +66,7 @@ BOOL WINAPI ConvertIndexToColorName( HPROFILE profile, PDWORD index, PCOLOR_NAME
BOOL WINAPI CreateDeviceLinkProfile( PHPROFILE profiles, DWORD nprofiles, PDWORD intents,
DWORD nintents, DWORD flags, PBYTE *data, DWORD index )
{
- FIXME( "( %p, 0x%08x, %p, 0x%08x, 0x%08x, %p, 0x%08x ) stub\n",
+ FIXME( "( %p, %#lx, %p, %#lx, %#lx, %p, %#lx ) stub\n",
profiles, nprofiles, intents, nintents, flags, data, index );
return FALSE;
@@ -90,7 +90,7 @@ DWORD WINAPI GenerateCopyFilePaths( LPCWSTR printer, LPCWSTR directory, LPBYTE c
DWORD level, LPWSTR sourcedir, LPDWORD sourcedirsize,
LPWSTR targetdir, LPDWORD targetdirsize, DWORD flags )
{
- FIXME( "( %s, %s, %p, 0x%08x, %p, %p, %p, %p, 0x%08x ) stub\n",
+ FIXME( "( %s, %s, %p, %#lx, %p, %p, %p, %p, %#lx ) stub\n",
debugstr_w(printer), debugstr_w(directory), clientinfo, level, sourcedir,
sourcedirsize, targetdir, targetdirsize, flags );
return ERROR_SUCCESS;
@@ -98,7 +98,7 @@ DWORD WINAPI GenerateCopyFilePaths( LPCWSTR printer, LPCWSTR directory, LPBYTE c
DWORD WINAPI GetCMMInfo( HTRANSFORM transform, DWORD info )
{
- FIXME( "( %p, 0x%08x ) stub\n", transform, info );
+ FIXME( "( %p, %#lx ) stub\n", transform, info );
return 0;
}
@@ -113,14 +113,14 @@ BOOL WINAPI GetNamedProfileInfo( HPROFILE profile, PNAMED_PROFILE_INFO info )
BOOL WINAPI GetPS2ColorRenderingDictionary( HPROFILE profile, DWORD intent, PBYTE buffer,
PDWORD size, PBOOL binary )
{
- FIXME( "( %p, 0x%08x, %p, %p, %p ) stub\n", profile, intent, buffer, size, binary );
+ FIXME( "( %p, %#lx, %p, %p, %p ) stub\n", profile, intent, buffer, size, binary );
return FALSE;
}
BOOL WINAPI GetPS2ColorRenderingIntent( HPROFILE profile, DWORD intent, PBYTE buffer, PDWORD size )
{
- FIXME( "( %p, 0x%08x, %p, %p ) stub\n", profile, intent, buffer, size );
+ FIXME( "( %p, %#lx, %p, %p ) stub\n", profile, intent, buffer, size );
return FALSE;
}
@@ -128,7 +128,7 @@ BOOL WINAPI GetPS2ColorRenderingIntent( HPROFILE profile, DWORD intent, PBYTE bu
BOOL WINAPI GetPS2ColorSpaceArray( HPROFILE profile, DWORD intent, DWORD type, PBYTE buffer,
PDWORD size, PBOOL binary )
{
- FIXME( "( %p, 0x%08x, 0x%08x, %p, %p, %p ) stub\n", profile, intent, type, buffer, size, binary );
+ FIXME( "( %p, %#lx, %#lx, %p, %p, %p ) stub\n", profile, intent, type, buffer, size, binary );
return FALSE;
}
@@ -156,33 +156,33 @@ BOOL WINAPI SelectCMM( DWORD id )
BOOL WINAPI SetColorProfileElementReference( HPROFILE profile, TAGTYPE type, TAGTYPE ref )
{
- FIXME( "( %p, 0x%08x, 0x%08x ) stub\n", profile, type, ref );
+ FIXME( "( %p, %#lx, %#lx ) stub\n", profile, type, ref );
return TRUE;
}
BOOL WINAPI SetColorProfileElementSize( HPROFILE profile, TAGTYPE type, DWORD size )
{
- FIXME( "( %p, 0x%08x, 0x%08x ) stub\n", profile, type, size );
+ FIXME( "( %p, %#lx, %#lx ) stub\n", profile, type, size );
return FALSE;
}
BOOL WINAPI SetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile )
{
- FIXME( "( 0x%08x, %p ) stub\n", id, profile );
+ FIXME( "( %#lx, %p ) stub\n", id, profile );
return TRUE;
}
BOOL WINAPI SetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profile )
{
- FIXME( "( 0x%08x, %p ) stub\n", id, profile );
+ FIXME( "( %#lx, %p ) stub\n", id, profile );
return TRUE;
}
BOOL WINAPI SpoolerCopyFileEvent( LPWSTR printer, LPWSTR key, DWORD event )
{
- FIXME( "( %s, %s, 0x%08x ) stub\n", debugstr_w(printer), debugstr_w(key), event );
+ FIXME( "( %s, %s, %#lx ) stub\n", debugstr_w(printer), debugstr_w(key), event );
return TRUE;
}
diff --git a/dlls/mscms/tests/Makefile.in b/dlls/mscms/tests/Makefile.in
index e9ff9724e2f..2d229c049ab 100644
--- a/dlls/mscms/tests/Makefile.in
+++ b/dlls/mscms/tests/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
TESTDLL = mscms.dll
IMPORTS = advapi32
diff --git a/dlls/mscms/tests/profile.c b/dlls/mscms/tests/profile.c
index 7083b56f11d..a3082500fe7 100644
--- a/dlls/mscms/tests/profile.c
+++ b/dlls/mscms/tests/profile.c
@@ -161,29 +161,25 @@ static void test_GetColorDirectoryA(void)
/* Parameter checks */
ret = pGetColorDirectoryA( NULL, NULL, NULL );
- ok( !ret, "GetColorDirectoryA() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorDirectoryA() succeeded (%lu)\n", GetLastError() );
size = 0;
-
ret = pGetColorDirectoryA( NULL, NULL, &size );
- ok( !ret && size > 0, "GetColorDirectoryA() succeeded (%d)\n", GetLastError() );
+ ok( !ret && size > 0, "GetColorDirectoryA() succeeded (%lu)\n", GetLastError() );
size = 0;
-
ret = pGetColorDirectoryA( NULL, buffer, &size );
- ok( !ret && size > 0, "GetColorDirectoryA() succeeded (%d)\n", GetLastError() );
+ ok( !ret && size > 0, "GetColorDirectoryA() succeeded (%lu)\n", GetLastError() );
size = 1;
-
ret = pGetColorDirectoryA( NULL, buffer, &size );
- ok( !ret && size > 0, "GetColorDirectoryA() succeeded (%d)\n", GetLastError() );
+ ok( !ret && size > 0, "GetColorDirectoryA() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
size = sizeof(buffer);
-
ret = pGetColorDirectoryA( NULL, buffer, &size );
- ok( ret && size > 0, "GetColorDirectoryA() failed (%d)\n", GetLastError() );
+ ok( ret && size > 0, "GetColorDirectoryA() failed (%lu)\n", GetLastError() );
}
static void test_GetColorDirectoryW(void)
@@ -195,33 +191,27 @@ static void test_GetColorDirectoryW(void)
/* Parameter checks */
/* This one crashes win2k
-
ret = pGetColorDirectoryW( NULL, NULL, NULL );
- ok( !ret, "GetColorDirectoryW() succeeded (%d)\n", GetLastError() );
-
+ ok( !ret, "GetColorDirectoryW() succeeded (%lu)\n", GetLastError() );
*/
size = 0;
-
ret = pGetColorDirectoryW( NULL, NULL, &size );
- ok( !ret && size > 0, "GetColorDirectoryW() succeeded (%d)\n", GetLastError() );
+ ok( !ret && size > 0, "GetColorDirectoryW() succeeded (%lu)\n", GetLastError() );
size = 0;
-
ret = pGetColorDirectoryW( NULL, buffer, &size );
- ok( !ret && size > 0, "GetColorDirectoryW() succeeded (%d)\n", GetLastError() );
+ ok( !ret && size > 0, "GetColorDirectoryW() succeeded (%lu)\n", GetLastError() );
size = 1;
-
ret = pGetColorDirectoryW( NULL, buffer, &size );
- ok( !ret && size > 0, "GetColorDirectoryW() succeeded (%d)\n", GetLastError() );
+ ok( !ret && size > 0, "GetColorDirectoryW() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
size = sizeof(buffer);
-
ret = pGetColorDirectoryW( NULL, buffer, &size );
- ok( ret && size > 0, "GetColorDirectoryW() failed (%d)\n", GetLastError() );
+ ok( ret && size > 0, "GetColorDirectoryW() failed (%lu)\n", GetLastError() );
}
static void test_GetColorProfileElement( char *standardprofile )
@@ -241,15 +231,15 @@ static void test_GetColorProfileElement( char *standardprofile )
profile.cbDataSize = strlen(standardprofile);
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
/* Parameter checks */
ret = pGetColorProfileElement( handle, tag, 0, NULL, NULL, &ref );
- ok( !ret, "GetColorProfileElement() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileElement() succeeded (%lu)\n", GetLastError() );
ret = pGetColorProfileElement( handle, tag, 0, &size, NULL, NULL );
- ok( !ret, "GetColorProfileElement() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileElement() succeeded (%lu)\n", GetLastError() );
size = 0;
ret = pGetColorProfileElement( handle, tag, 0, &size, NULL, &ref );
@@ -260,7 +250,7 @@ static void test_GetColorProfileElement( char *standardprofile )
size = sizeof(buffer);
ret = pGetColorProfileElement( handle, tag, 0, &size, buffer, &ref );
- ok( ret, "GetColorProfileElement() failed %u\n", GetLastError() );
+ ok( ret, "GetColorProfileElement() failed %lu\n", GetLastError() );
ok( size > 0, "wrong size\n" );
ok( !memcmp( buffer, expect, sizeof(expect)-1 ), "Unexpected tag data\n" );
@@ -283,27 +273,26 @@ static void test_GetColorProfileElementTag( char *standardprofile )
profile.cbDataSize = strlen(standardprofile);
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
/* Parameter checks */
ret = pGetColorProfileElementTag( NULL, index, &tag );
- ok( !ret, "GetColorProfileElementTag() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileElementTag() succeeded (%lu)\n", GetLastError() );
ret = pGetColorProfileElementTag( handle, 0, &tag );
- ok( !ret, "GetColorProfileElementTag() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileElementTag() succeeded (%lu)\n", GetLastError() );
ret = pGetColorProfileElementTag( handle, index, NULL );
- ok( !ret, "GetColorProfileElementTag() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileElementTag() succeeded (%lu)\n", GetLastError() );
ret = pGetColorProfileElementTag( handle, 18, NULL );
- ok( !ret, "GetColorProfileElementTag() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileElementTag() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
while ((ret = pGetColorProfileElementTag( handle, index, &tag )) && tag != expect) index++;
- ok( ret && tag == expect, "GetColorProfileElementTag() failed (%d)\n",
- GetLastError() );
+ ok( ret && tag == expect, "GetColorProfileElementTag() failed (%lu)\n", GetLastError() );
pCloseColorProfile( handle );
}
@@ -325,38 +314,37 @@ static void test_GetColorProfileFromHandle( char *testprofile )
profile.cbDataSize = strlen(testprofile);
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
/* Parameter checks */
size = 0;
-
ret = pGetColorProfileFromHandle( handle, NULL, &size );
- ok( !ret && size > 0, "GetColorProfileFromHandle() failed (%d)\n", GetLastError() );
+ ok( !ret && size > 0, "GetColorProfileFromHandle() failed (%lu)\n", GetLastError() );
if ((buffer = malloc( size )))
{
ret = pGetColorProfileFromHandle( NULL, buffer, &size );
- ok( !ret, "GetColorProfileFromHandle() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileFromHandle() succeeded (%lu)\n", GetLastError() );
ret = pGetColorProfileFromHandle( handle, buffer, NULL );
- ok( !ret, "GetColorProfileFromHandle() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileFromHandle() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
ret = pGetColorProfileFromHandle( handle, buffer, &size );
- ok( ret && size > 0, "GetColorProfileFromHandle() failed (%d)\n", GetLastError() );
+ ok( ret && size > 0, "GetColorProfileFromHandle() failed (%lu)\n", GetLastError() );
header = (PROFILEHEADER *)buffer;
- ok( header->phClass == 0x72746e6d, "wrong phClass %x\n", header->phClass );
- ok( header->phDataColorSpace == 0x20424752, "wrong phDataColorSpace %x\n", header->phDataColorSpace );
- ok( header->phConnectionSpace == 0x205a5958, "wrong phConnectionSpace %x\n", header->phConnectionSpace );
- ok( header->phSignature == 0x70736361, "wrong phSignature %x\n", header->phSignature );
- ok( header->phProfileFlags == 0x00000000, "wrong phProfileFlags %x\n", header->phProfileFlags );
- ok( header->phRenderingIntent == 0x00000000, "wrong phRenderingIntent %x\n", header->phRenderingIntent );
- ok( header->phIlluminant.ciexyzX == 0xd6f60000, "wrong phIlluminant.ciexyzX %x\n", header->phIlluminant.ciexyzX );
- ok( header->phIlluminant.ciexyzY == 0x00000100, "wrong phIlluminant.ciexyzY %x\n", header->phIlluminant.ciexyzY );
- ok( header->phIlluminant.ciexyzZ == 0x2dd30000, "wrong phIlluminant.ciexyzZ %x\n", header->phIlluminant.ciexyzZ );
+ ok( header->phClass == 0x72746e6d, "wrong phClass %#lx\n", header->phClass );
+ ok( header->phDataColorSpace == 0x20424752, "wrong phDataColorSpace %#lx\n", header->phDataColorSpace );
+ ok( header->phConnectionSpace == 0x205a5958, "wrong phConnectionSpace %#lx\n", header->phConnectionSpace );
+ ok( header->phSignature == 0x70736361, "wrong phSignature %#lx\n", header->phSignature );
+ ok( header->phProfileFlags == 0x00000000, "wrong phProfileFlags %#lx\n", header->phProfileFlags );
+ ok( header->phRenderingIntent == 0x00000000, "wrong phRenderingIntent %#lx\n", header->phRenderingIntent );
+ ok( header->phIlluminant.ciexyzX == 0xd6f60000, "wrong phIlluminant.ciexyzX %#lx\n", header->phIlluminant.ciexyzX );
+ ok( header->phIlluminant.ciexyzY == 0x00000100, "wrong phIlluminant.ciexyzY %#lx\n", header->phIlluminant.ciexyzY );
+ ok( header->phIlluminant.ciexyzZ == 0x2dd30000, "wrong phIlluminant.ciexyzZ %#lx\n", header->phIlluminant.ciexyzZ );
free( buffer );
}
@@ -378,36 +366,36 @@ static void test_GetColorProfileHeader( char *testprofile )
profile.cbDataSize = strlen(testprofile);
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
/* Parameter checks */
ret = pGetColorProfileHeader( NULL, NULL );
- ok( !ret, "GetColorProfileHeader() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileHeader() succeeded (%lu)\n", GetLastError() );
ret = pGetColorProfileHeader( NULL, &header );
- ok( !ret, "GetColorProfileHeader() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileHeader() succeeded (%lu)\n", GetLastError() );
if (0) /* Crashes on Vista */
{
ret = pGetColorProfileHeader( handle, NULL );
- ok( !ret, "GetColorProfileHeader() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "GetColorProfileHeader() succeeded (%lu)\n", GetLastError() );
}
/* Functional checks */
ret = pGetColorProfileHeader( handle, &header );
- ok( ret, "GetColorProfileHeader() failed (%d)\n", GetLastError() );
-
- ok( header.phClass == 0x6d6e7472, "wrong phClass %x\n", header.phClass );
- ok( header.phDataColorSpace == 0x52474220, "wrong phDataColorSpace %x\n", header.phDataColorSpace );
- ok( header.phConnectionSpace == 0x58595a20, "wrong phConnectionSpace %x\n", header.phConnectionSpace );
- ok( header.phSignature == 0x61637370, "wrong phSignature %x\n", header.phSignature );
- ok( header.phProfileFlags == 0x00000000, "wrong phProfileFlags %x\n", header.phProfileFlags );
- ok( header.phRenderingIntent == 0x00000000, "wrong phRenderingIntent %x\n", header.phRenderingIntent );
- ok( header.phIlluminant.ciexyzX == 0x0000f6d6, "wrong phIlluminant.ciexyzX %x\n", header.phIlluminant.ciexyzX );
- ok( header.phIlluminant.ciexyzY == 0x00010000, "wrong phIlluminant.ciexyzY %x\n", header.phIlluminant.ciexyzY );
- ok( header.phIlluminant.ciexyzZ == 0x0000d32d, "wrong phIlluminant.ciexyzZ %x\n", header.phIlluminant.ciexyzZ );
+ ok( ret, "GetColorProfileHeader() failed (%lu)\n", GetLastError() );
+
+ ok( header.phClass == 0x6d6e7472, "wrong phClass %#lx\n", header.phClass );
+ ok( header.phDataColorSpace == 0x52474220, "wrong phDataColorSpace %#lx\n", header.phDataColorSpace );
+ ok( header.phConnectionSpace == 0x58595a20, "wrong phConnectionSpace %#lx\n", header.phConnectionSpace );
+ ok( header.phSignature == 0x61637370, "wrong phSignature %#lx\n", header.phSignature );
+ ok( header.phProfileFlags == 0x00000000, "wrong phProfileFlags %#lx\n", header.phProfileFlags );
+ ok( header.phRenderingIntent == 0x00000000, "wrong phRenderingIntent %#lx\n", header.phRenderingIntent );
+ ok( header.phIlluminant.ciexyzX == 0x0000f6d6, "wrong phIlluminant.ciexyzX %#lx\n", header.phIlluminant.ciexyzX );
+ ok( header.phIlluminant.ciexyzY == 0x00010000, "wrong phIlluminant.ciexyzY %#lx\n", header.phIlluminant.ciexyzY );
+ ok( header.phIlluminant.ciexyzZ == 0x0000d32d, "wrong phIlluminant.ciexyzZ %#lx\n", header.phIlluminant.ciexyzZ );
pCloseColorProfile( handle );
}
@@ -427,23 +415,21 @@ static void test_GetCountColorProfileElements( char *standardprofile )
profile.cbDataSize = strlen(standardprofile);
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
/* Parameter checks */
ret = pGetCountColorProfileElements( NULL, &count );
- ok( !ret, "GetCountColorProfileElements() succeeded (%d)\n",
- GetLastError() );
+ ok( !ret, "GetCountColorProfileElements() succeeded (%lu)\n", GetLastError() );
ret = pGetCountColorProfileElements( handle, NULL );
- ok( !ret, "GetCountColorProfileElements() succeeded (%d)\n",
- GetLastError() );
+ ok( !ret, "GetCountColorProfileElements() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
ret = pGetCountColorProfileElements( handle, &count );
ok( ret && count > 15 && count < 20,
- "GetCountColorProfileElements() failed (%d) %u\n", GetLastError(), count );
+ "GetCountColorProfileElements() failed (%lu) %lu\n", GetLastError(), count );
pCloseColorProfile( handle );
}
@@ -463,28 +449,32 @@ static void test_GetStandardColorSpaceProfileA( char *standardprofile )
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 1st param, */
ret = pGetStandardColorSpaceProfileA(machine, LCS_sRGB, newprofile, &size);
- ok( !ret && GetLastError() == ERROR_NOT_SUPPORTED, "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_NOT_SUPPORTED, "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 2nd param, */
ret = pGetStandardColorSpaceProfileA(NULL, (DWORD)-1, newprofile, &size);
- ok( !ret && GetLastError() == ERROR_FILE_NOT_FOUND, "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_FILE_NOT_FOUND, "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 4th param, */
ret = pGetStandardColorSpaceProfileA(NULL, LCS_sRGB, newprofile, NULL);
- ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER, "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER, "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 3rd param, */
ret = pGetStandardColorSpaceProfileA(NULL, LCS_sRGB, NULL, &size);
- ok( !ret && GetLastError() == ERROR_INSUFFICIENT_BUFFER, "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_INSUFFICIENT_BUFFER, "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = 0;
SetLastError(0xfaceabee); /* dereferenced 4th param, */
ret = pGetStandardColorSpaceProfileA(NULL, LCS_sRGB, newprofile, &size);
ok( !ret && (GetLastError() == ERROR_MORE_DATA || GetLastError() == ERROR_INSUFFICIENT_BUFFER),
- "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n", ret, GetLastError() );
/* Several invalid parameter checks: */
@@ -492,30 +482,32 @@ static void test_GetStandardColorSpaceProfileA( char *standardprofile )
SetLastError(0xfaceabee); /* 1st, maybe 2nd and then dereferenced 4th param, */
ret = pGetStandardColorSpaceProfileA(machine, 0, newprofile, &size);
ok( !ret && (GetLastError() == ERROR_INVALID_PARAMETER || GetLastError() == ERROR_NOT_SUPPORTED),
- "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n", ret, GetLastError() );
SetLastError(0xfaceabee); /* maybe 2nd and then 4th param, */
ret = pGetStandardColorSpaceProfileA(NULL, 0, newprofile, NULL);
- ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER, "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER, "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = 0;
SetLastError(0xfaceabee); /* maybe 2nd, then 3rd and dereferenced 4th param, */
ret = pGetStandardColorSpaceProfileA(NULL, 0, NULL, &size);
ok( !ret && (GetLastError() == ERROR_INSUFFICIENT_BUFFER || GetLastError() == ERROR_FILE_NOT_FOUND),
- "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n", ret, GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* maybe 2nd param. */
ret = pGetStandardColorSpaceProfileA(NULL, 0, newprofile, &size);
- if (!ret) ok( GetLastError() == ERROR_FILE_NOT_FOUND, "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ if (!ret) ok( GetLastError() == ERROR_FILE_NOT_FOUND, "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
else ok( !lstrcmpiA( newprofile, "" ) && GetLastError() == 0xfaceabee,
- "GetStandardColorSpaceProfileA() returns %d (GLE=%d)\n", ret, GetLastError() );
+ "GetStandardColorSpaceProfileA() returns %d (GLE=%lu)\n", ret, GetLastError() );
/* Functional checks */
size = sizeof(oldprofile);
ret = pGetStandardColorSpaceProfileA( NULL, LCS_sRGB, oldprofile, &size );
- ok( ret, "GetStandardColorSpaceProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "GetStandardColorSpaceProfileA() failed (%lu)\n", GetLastError() );
SetLastError(0xdeadbeef);
ret = pSetStandardColorSpaceProfileA( NULL, LCS_sRGB, standardprofile );
@@ -524,14 +516,14 @@ static void test_GetStandardColorSpaceProfileA( char *standardprofile )
skip("Not enough rights for SetStandardColorSpaceProfileA\n");
return;
}
- ok( ret, "SetStandardColorSpaceProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "SetStandardColorSpaceProfileA() failed (%lu)\n", GetLastError() );
size = sizeof(newprofile);
ret = pGetStandardColorSpaceProfileA( NULL, LCS_sRGB, newprofile, &size );
- ok( ret, "GetStandardColorSpaceProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "GetStandardColorSpaceProfileA() failed (%lu)\n", GetLastError() );
ret = pSetStandardColorSpaceProfileA( NULL, LCS_sRGB, oldprofile );
- ok( ret, "SetStandardColorSpaceProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "SetStandardColorSpaceProfileA() failed (%lu)\n", GetLastError() );
}
static void test_GetStandardColorSpaceProfileW( WCHAR *standardprofileW )
@@ -549,19 +541,21 @@ static void test_GetStandardColorSpaceProfileW( WCHAR *standardprofileW )
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 1st param, */
ret = pGetStandardColorSpaceProfileW(machineW, LCS_sRGB, newprofile, &size);
- ok( !ret && GetLastError() == ERROR_NOT_SUPPORTED, "GetStandardColorSpaceProfileW() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_NOT_SUPPORTED, "GetStandardColorSpaceProfileW() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 2nd param, */
ret = pGetStandardColorSpaceProfileW(NULL, (DWORD)-1, newprofile, &size);
- ok( !ret && GetLastError() == ERROR_FILE_NOT_FOUND, "GetStandardColorSpaceProfileW() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_FILE_NOT_FOUND, "GetStandardColorSpaceProfileW() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 2nd param, */
ret = pGetStandardColorSpaceProfileW(NULL, 0, newprofile, &size);
ok( (!ret && GetLastError() == ERROR_FILE_NOT_FOUND) ||
broken(ret), /* Win98 and WinME */
- "GetStandardColorSpaceProfileW() returns %d (GLE=%d)\n", ret, GetLastError() );
+ "GetStandardColorSpaceProfileW() returns %d (GLE=%lu)\n", ret, GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 3rd param, */
@@ -569,12 +563,13 @@ static void test_GetStandardColorSpaceProfileW( WCHAR *standardprofileW )
ok( !ret || broken(ret) /* win98 */, "GetStandardColorSpaceProfileW succeeded\n" );
ok( GetLastError() == ERROR_INSUFFICIENT_BUFFER ||
broken(GetLastError() == 0xfaceabee) /* win98 */,
- "GetStandardColorSpaceProfileW() returns GLE=%u\n", GetLastError() );
+ "GetStandardColorSpaceProfileW() returns GLE=%lu\n", GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* 4th param, */
ret = pGetStandardColorSpaceProfileW(NULL, LCS_sRGB, newprofile, NULL);
- ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER, "GetStandardColorSpaceProfileW() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER, "GetStandardColorSpaceProfileW() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = 0;
SetLastError(0xfaceabee); /* dereferenced 4th param. */
@@ -583,7 +578,7 @@ static void test_GetStandardColorSpaceProfileW( WCHAR *standardprofileW )
ok( GetLastError() == ERROR_MORE_DATA ||
GetLastError() == ERROR_INSUFFICIENT_BUFFER ||
broken(GetLastError() == 0xfaceabee) /* win98 */,
- "GetStandardColorSpaceProfileW() returns GLE=%u\n", GetLastError() );
+ "GetStandardColorSpaceProfileW() returns GLE=%lu\n", GetLastError() );
/* Several invalid parameter checks: */
@@ -591,11 +586,12 @@ static void test_GetStandardColorSpaceProfileW( WCHAR *standardprofileW )
SetLastError(0xfaceabee); /* 1st, maybe 2nd and then dereferenced 4th param, */
ret = pGetStandardColorSpaceProfileW(machineW, 0, newprofile, &size);
ok( !ret && (GetLastError() == ERROR_INVALID_PARAMETER || GetLastError() == ERROR_NOT_SUPPORTED),
- "GetStandardColorSpaceProfileW() returns %d (GLE=%d)\n", ret, GetLastError() );
+ "GetStandardColorSpaceProfileW() returns %d (GLE=%lu)\n", ret, GetLastError() );
SetLastError(0xfaceabee); /* maybe 2nd and then 4th param, */
ret = pGetStandardColorSpaceProfileW(NULL, 0, newprofile, NULL);
- ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER, "GetStandardColorSpaceProfileW() returns %d (GLE=%d)\n", ret, GetLastError() );
+ ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER, "GetStandardColorSpaceProfileW() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
size = 0;
SetLastError(0xfaceabee); /* maybe 2nd, then 3rd and dereferenced 4th param, */
@@ -604,24 +600,25 @@ static void test_GetStandardColorSpaceProfileW( WCHAR *standardprofileW )
ok( GetLastError() == ERROR_INSUFFICIENT_BUFFER ||
GetLastError() == ERROR_FILE_NOT_FOUND ||
broken(GetLastError() == 0xfaceabee) /* win98 */,
- "GetStandardColorSpaceProfileW() returns GLE=%u\n", GetLastError() );
+ "GetStandardColorSpaceProfileW() returns GLE=%lu\n", GetLastError() );
size = sizeof(newprofile);
SetLastError(0xfaceabee); /* maybe 2nd param. */
ret = pGetStandardColorSpaceProfileW(NULL, 0, newprofile, &size);
- if (!ret) ok( GetLastError() == ERROR_FILE_NOT_FOUND, "GetStandardColorSpaceProfileW() returns %d (GLE=%d)\n", ret, GetLastError() );
+ if (!ret) ok( GetLastError() == ERROR_FILE_NOT_FOUND, "GetStandardColorSpaceProfileW() returns %d (GLE=%lu)\n",
+ ret, GetLastError() );
else
{
WideCharToMultiByte(CP_ACP, 0, newprofile, -1, newprofileA, sizeof(newprofileA), NULL, NULL);
ok( !lstrcmpiA( newprofileA, "" ) && GetLastError() == 0xfaceabee,
- "GetStandardColorSpaceProfileW() returns %d (GLE=%d)\n", ret, GetLastError() );
+ "GetStandardColorSpaceProfileW() returns %d (GLE=%lu)\n", ret, GetLastError() );
}
/* Functional checks */
size = sizeof(oldprofile);
ret = pGetStandardColorSpaceProfileW( NULL, LCS_sRGB, oldprofile, &size );
- ok( ret, "GetStandardColorSpaceProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "GetStandardColorSpaceProfileW() failed (%lu)\n", GetLastError() );
SetLastError(0xdeadbeef);
ret = pSetStandardColorSpaceProfileW( NULL, LCS_sRGB, standardprofileW );
@@ -630,14 +627,14 @@ static void test_GetStandardColorSpaceProfileW( WCHAR *standardprofileW )
skip("Not enough rights for SetStandardColorSpaceProfileW\n");
return;
}
- ok( ret, "SetStandardColorSpaceProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "SetStandardColorSpaceProfileW() failed (%lu)\n", GetLastError() );
size = sizeof(newprofile);
ret = pGetStandardColorSpaceProfileW( NULL, LCS_sRGB, newprofile, &size );
- ok( ret, "GetStandardColorSpaceProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "GetStandardColorSpaceProfileW() failed (%lu)\n", GetLastError() );
ret = pSetStandardColorSpaceProfileW( NULL, LCS_sRGB, oldprofile );
- ok( ret, "SetStandardColorSpaceProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "SetStandardColorSpaceProfileW() failed (%lu)\n", GetLastError() );
}
static void test_EnumColorProfilesA( char *standardprofile )
@@ -660,7 +657,7 @@ static void test_EnumColorProfilesA( char *standardprofile )
SetLastError( 0xdeadbeef );
ret = pEnumColorProfilesA( NULL, &record, NULL, &total, &number );
ok( !ret, "EnumColorProfilesA succeeded\n" );
- if (have_color_profile) ok( GetLastError() == ERROR_INSUFFICIENT_BUFFER, "got %u\n", GetLastError() );
+ if (have_color_profile) ok( GetLastError() == ERROR_INSUFFICIENT_BUFFER, "got %lu\n", GetLastError() );
buffer = malloc( total );
size = total;
@@ -675,7 +672,7 @@ static void test_EnumColorProfilesA( char *standardprofile )
ret = pEnumColorProfilesA( NULL, &record, buffer, &size, &number );
todo_wine_if (!have_color_profile)
- ok( ret, "EnumColorProfilesA failed %u\n", GetLastError() );
+ ok( ret, "EnumColorProfilesA failed %lu\n", GetLastError() );
size = 0;
ret = pEnumColorProfilesA( NULL, &record, buffer, &size, &number );
@@ -686,7 +683,7 @@ static void test_EnumColorProfilesA( char *standardprofile )
size = total;
ret = pEnumColorProfilesA( NULL, &record, buffer, &size, &number );
todo_wine_if (!have_color_profile)
- ok( ret, "EnumColorProfilesA failed %u\n", GetLastError() );
+ ok( ret, "EnumColorProfilesA failed %lu\n", GetLastError() );
free( buffer );
}
@@ -711,7 +708,7 @@ static void test_EnumColorProfilesW( WCHAR *standardprofileW )
SetLastError( 0xdeadbeef );
ret = pEnumColorProfilesW( NULL, &record, NULL, &total, &number );
ok( !ret, "EnumColorProfilesW succeeded\n" );
- if (have_color_profile) ok( GetLastError() == ERROR_INSUFFICIENT_BUFFER, "got %u\n", GetLastError() );
+ if (have_color_profile) ok( GetLastError() == ERROR_INSUFFICIENT_BUFFER, "got %lu\n", GetLastError() );
buffer = malloc( total * sizeof(WCHAR) );
size = total;
@@ -726,7 +723,7 @@ static void test_EnumColorProfilesW( WCHAR *standardprofileW )
ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number );
todo_wine_if (!have_color_profile)
- ok( ret, "EnumColorProfilesW failed %u\n", GetLastError() );
+ ok( ret, "EnumColorProfilesW failed %lu\n", GetLastError() );
size = 0;
ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number );
@@ -737,7 +734,7 @@ static void test_EnumColorProfilesW( WCHAR *standardprofileW )
size = total;
ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number );
todo_wine_if (!have_color_profile)
- ok( ret, "EnumColorProfilesW failed %u\n", GetLastError() );
+ ok( ret, "EnumColorProfilesW failed %lu\n", GetLastError() );
free( buffer );
}
@@ -749,18 +746,18 @@ static void test_InstallColorProfileA( char *standardprofile, char *testprofile
/* Parameter checks */
ret = pInstallColorProfileA( NULL, NULL );
- ok( !ret, "InstallColorProfileA() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "InstallColorProfileA() succeeded (%lu)\n", GetLastError() );
ret = pInstallColorProfileA( machine, NULL );
- ok( !ret, "InstallColorProfileA() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "InstallColorProfileA() succeeded (%lu)\n", GetLastError() );
ret = pInstallColorProfileA( NULL, machine );
- ok( !ret, "InstallColorProfileA() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "InstallColorProfileA() succeeded (%lu)\n", GetLastError() );
if (standardprofile)
{
ret = pInstallColorProfileA( NULL, standardprofile );
- ok( ret, "InstallColorProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "InstallColorProfileA() failed (%lu)\n", GetLastError() );
}
/* Functional checks */
@@ -778,10 +775,10 @@ static void test_InstallColorProfileA( char *standardprofile, char *testprofile
skip("Not enough rights for InstallColorProfileA\n");
return;
}
- ok( ret, "InstallColorProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "InstallColorProfileA() failed (%lu)\n", GetLastError() );
ret = pGetColorDirectoryA( NULL, dest, &size );
- ok( ret, "GetColorDirectoryA() failed (%d)\n", GetLastError() );
+ ok( ret, "GetColorDirectoryA() failed (%lu)\n", GetLastError() );
MSCMS_basenameA( testprofile, base );
@@ -790,11 +787,11 @@ static void test_InstallColorProfileA( char *standardprofile, char *testprofile
/* Check if the profile is really there */
handle = CreateFileA( dest, 0 , 0, NULL, OPEN_EXISTING, 0, NULL );
- ok( handle != INVALID_HANDLE_VALUE, "Couldn't find the profile (%d)\n", GetLastError() );
+ ok( handle != INVALID_HANDLE_VALUE, "Couldn't find the profile (%lu)\n", GetLastError() );
CloseHandle( handle );
ret = pUninstallColorProfileA( NULL, dest, TRUE );
- ok( ret, "UninstallColorProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "UninstallColorProfileA() failed (%lu)\n", GetLastError() );
}
}
@@ -805,18 +802,18 @@ static void test_InstallColorProfileW( WCHAR *standardprofileW, WCHAR *testprofi
/* Parameter checks */
ret = pInstallColorProfileW( NULL, NULL );
- ok( !ret, "InstallColorProfileW() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "InstallColorProfileW() succeeded (%lu)\n", GetLastError() );
ret = pInstallColorProfileW( machineW, NULL );
- ok( !ret, "InstallColorProfileW() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "InstallColorProfileW() succeeded (%lu)\n", GetLastError() );
ret = pInstallColorProfileW( NULL, machineW );
- ok( !ret, "InstallColorProfileW() failed (%d)\n", GetLastError() );
+ ok( !ret, "InstallColorProfileW() failed (%lu)\n", GetLastError() );
if (standardprofileW)
{
ret = pInstallColorProfileW( NULL, standardprofileW );
- ok( ret, "InstallColorProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "InstallColorProfileW() failed (%lu)\n", GetLastError() );
}
/* Functional checks */
@@ -834,10 +831,10 @@ static void test_InstallColorProfileW( WCHAR *standardprofileW, WCHAR *testprofi
skip("Not enough rights for InstallColorProfileW\n");
return;
}
- ok( ret, "InstallColorProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "InstallColorProfileW() failed (%lu)\n", GetLastError() );
ret = pGetColorDirectoryW( NULL, dest, &size );
- ok( ret, "GetColorDirectoryW() failed (%d)\n", GetLastError() );
+ ok( ret, "GetColorDirectoryW() failed (%lu)\n", GetLastError() );
MSCMS_basenameW( testprofileW, base );
@@ -846,11 +843,11 @@ static void test_InstallColorProfileW( WCHAR *standardprofileW, WCHAR *testprofi
/* Check if the profile is really there */
handle = CreateFileW( dest, 0 , 0, NULL, OPEN_EXISTING, 0, NULL );
- ok( handle != INVALID_HANDLE_VALUE, "Couldn't find the profile (%d)\n", GetLastError() );
+ ok( handle != INVALID_HANDLE_VALUE, "Couldn't find the profile (%lu)\n", GetLastError() );
CloseHandle( handle );
ret = pUninstallColorProfileW( NULL, dest, TRUE );
- ok( ret, "UninstallColorProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "UninstallColorProfileW() failed (%lu)\n", GetLastError() );
}
}
@@ -868,27 +865,27 @@ static void test_IsColorProfileTagPresent( char *standardprofile )
profile.cbDataSize = strlen(standardprofile);
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
/* Parameter checks */
tag = 0;
ret = pIsColorProfileTagPresent( handle, tag, &present );
- ok( !(ret && present), "IsColorProfileTagPresent() succeeded (%d)\n", GetLastError() );
+ ok( !(ret && present), "IsColorProfileTagPresent() succeeded (%lu)\n", GetLastError() );
tag = 0x63707274; /* 'cprt' */
ret = pIsColorProfileTagPresent( NULL, tag, &present );
- ok( !ret, "IsColorProfileTagPresent() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "IsColorProfileTagPresent() succeeded (%lu)\n", GetLastError() );
ret = pIsColorProfileTagPresent( handle, tag, NULL );
- ok( !ret, "IsColorProfileTagPresent() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "IsColorProfileTagPresent() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
ret = pIsColorProfileTagPresent( handle, tag, &present );
- ok( ret && present, "IsColorProfileTagPresent() failed (%d)\n", GetLastError() );
+ ok( ret && present, "IsColorProfileTagPresent() failed (%lu)\n", GetLastError() );
pCloseColorProfile( handle );
}
@@ -907,16 +904,16 @@ static void test_OpenColorProfileA( char *standardprofile )
/* Parameter checks */
handle = pOpenColorProfileA( NULL, 0, 0, 0 );
- ok( handle == NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileA( &profile, 0, 0, 0 );
- ok( handle == NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, 0 );
- ok( handle == NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileA( &profile, PROFILE_READWRITE, 0, 0 );
- ok( handle == NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
ok ( !pCloseColorProfile( NULL ), "CloseColorProfile() succeeded\n" );
@@ -926,31 +923,31 @@ static void test_OpenColorProfileA( char *standardprofile )
profile.cbDataSize = strlen(standardprofile);
handle = pOpenColorProfileA( &profile, 0, 0, 0 );
- ok( handle == NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, 0 );
- ok( handle == NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileA( &profile, PROFILE_READ|PROFILE_READWRITE, 0, 0 );
- ok( handle == NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
/* Functional checks */
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
ret = pCloseColorProfile( handle );
- ok( ret, "CloseColorProfile() failed (%d)\n", GetLastError() );
+ ok( ret, "CloseColorProfile() failed (%lu)\n", GetLastError() );
profile.dwType = PROFILE_FILENAME;
profile.pProfileData = (void *)"sRGB Color Space Profile.icm";
profile.cbDataSize = sizeof("sRGB Color Space Profile.icm");
handle = pOpenColorProfileA( &profile, PROFILE_READ, FILE_SHARE_READ, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
ret = pCloseColorProfile( handle );
- ok( ret, "CloseColorProfile() failed (%d)\n", GetLastError() );
+ ok( ret, "CloseColorProfile() failed (%lu)\n", GetLastError() );
}
}
@@ -967,16 +964,16 @@ static void test_OpenColorProfileW( WCHAR *standardprofileW )
/* Parameter checks */
handle = pOpenColorProfileW( NULL, 0, 0, 0 );
- ok( handle == NULL, "OpenColorProfileW() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileW() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileW( &profile, 0, 0, 0 );
- ok( handle == NULL, "OpenColorProfileW() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileW() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileW( &profile, PROFILE_READ, 0, 0 );
- ok( handle == NULL, "OpenColorProfileW() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileW() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileW( &profile, PROFILE_READWRITE, 0, 0 );
- ok( handle == NULL, "OpenColorProfileW() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileW() failed (%lu)\n", GetLastError() );
ok ( !pCloseColorProfile( NULL ), "CloseColorProfile() succeeded\n" );
@@ -986,21 +983,21 @@ static void test_OpenColorProfileW( WCHAR *standardprofileW )
profile.cbDataSize = lstrlenW(standardprofileW) * sizeof(WCHAR);
handle = pOpenColorProfileW( &profile, 0, 0, 0 );
- ok( handle == NULL, "OpenColorProfileW() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileW() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileW( &profile, PROFILE_READ, 0, 0 );
- ok( handle == NULL, "OpenColorProfileW() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileW() failed (%lu)\n", GetLastError() );
handle = pOpenColorProfileW( &profile, PROFILE_READ|PROFILE_READWRITE, 0, 0 );
- ok( handle == NULL, "OpenColorProfileW() failed (%d)\n", GetLastError() );
+ ok( handle == NULL, "OpenColorProfileW() failed (%lu)\n", GetLastError() );
/* Functional checks */
handle = pOpenColorProfileW( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileW() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileW() failed (%lu)\n", GetLastError() );
ret = pCloseColorProfile( handle );
- ok( ret, "CloseColorProfile() failed (%d)\n", GetLastError() );
+ ok( ret, "CloseColorProfile() failed (%lu)\n", GetLastError() );
}
}
@@ -1024,41 +1021,41 @@ static void test_SetColorProfileElement( char *testprofile )
/* Parameter checks */
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
ret = pSetColorProfileElement( handle, tag, 0, &size, data );
- ok( !ret, "SetColorProfileElement() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileElement() succeeded (%lu)\n", GetLastError() );
pCloseColorProfile( handle );
handle = pOpenColorProfileA( &profile, PROFILE_READWRITE, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
ret = pSetColorProfileElement( NULL, 0, 0, NULL, NULL );
- ok( !ret, "SetColorProfileElement() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileElement() succeeded (%lu)\n", GetLastError() );
ret = pSetColorProfileElement( handle, 0, 0, NULL, NULL );
- ok( !ret, "SetColorProfileElement() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileElement() succeeded (%lu)\n", GetLastError() );
ret = pSetColorProfileElement( handle, tag, 0, NULL, NULL );
- ok( !ret, "SetColorProfileElement() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileElement() succeeded (%lu)\n", GetLastError() );
ret = pSetColorProfileElement( handle, tag, 0, &size, NULL );
- ok( !ret, "SetColorProfileElement() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileElement() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
size = sizeof(data);
ret = pSetColorProfileElement( handle, tag, 0, &size, data );
- ok( ret, "SetColorProfileElement() failed %u\n", GetLastError() );
+ ok( ret, "SetColorProfileElement() failed %lu\n", GetLastError() );
size = sizeof(buffer);
ret = pGetColorProfileElement( handle, tag, 0, &size, buffer, &ref );
- ok( ret, "GetColorProfileElement() failed %u\n", GetLastError() );
+ ok( ret, "GetColorProfileElement() failed %lu\n", GetLastError() );
ok( size > 0, "wrong size\n" );
ok( !memcmp( data, buffer, sizeof(data) ),
- "Unexpected tag data, expected %s, got %s (%u)\n", data, buffer, GetLastError() );
+ "Unexpected tag data, expected %s, got %s (%lu)\n", data, buffer, GetLastError() );
pCloseColorProfile( handle );
}
@@ -1102,32 +1099,32 @@ static void test_SetColorProfileHeader( char *testprofile )
/* Parameter checks */
handle = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
ret = pSetColorProfileHeader( handle, &header );
- ok( !ret, "SetColorProfileHeader() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileHeader() succeeded (%lu)\n", GetLastError() );
pCloseColorProfile( handle );
handle = pOpenColorProfileA( &profile, PROFILE_READWRITE, 0, OPEN_EXISTING );
- ok( handle != NULL, "OpenColorProfileA() failed (%d)\n", GetLastError() );
+ ok( handle != NULL, "OpenColorProfileA() failed (%lu)\n", GetLastError() );
ret = pSetColorProfileHeader( NULL, NULL );
- ok( !ret, "SetColorProfileHeader() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileHeader() succeeded (%lu)\n", GetLastError() );
ret = pSetColorProfileHeader( handle, NULL );
- ok( !ret, "SetColorProfileHeader() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileHeader() succeeded (%lu)\n", GetLastError() );
ret = pSetColorProfileHeader( NULL, &header );
- ok( !ret, "SetColorProfileHeader() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "SetColorProfileHeader() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
ret = pSetColorProfileHeader( handle, &header );
- ok( ret, "SetColorProfileHeader() failed (%d)\n", GetLastError() );
+ ok( ret, "SetColorProfileHeader() failed (%lu)\n", GetLastError() );
ret = pGetColorProfileHeader( handle, &header );
- ok( ret, "GetColorProfileHeader() failed (%d)\n", GetLastError() );
+ ok( ret, "GetColorProfileHeader() failed (%lu)\n", GetLastError() );
ok( !memcmp( &header, rgbheader, sizeof(rgbheader) ), "Unexpected header data\n" );
@@ -1142,10 +1139,10 @@ static void test_UninstallColorProfileA( char *testprofile )
/* Parameter checks */
ret = pUninstallColorProfileA( NULL, NULL, FALSE );
- ok( !ret, "UninstallColorProfileA() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "UninstallColorProfileA() succeeded (%lu)\n", GetLastError() );
ret = pUninstallColorProfileA( machine, NULL, FALSE );
- ok( !ret, "UninstallColorProfileA() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "UninstallColorProfileA() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
@@ -1162,10 +1159,10 @@ static void test_UninstallColorProfileA( char *testprofile )
skip("Not enough rights for InstallColorProfileA\n");
return;
}
- ok( ret, "InstallColorProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "InstallColorProfileA() failed (%lu)\n", GetLastError() );
ret = pGetColorDirectoryA( NULL, dest, &size );
- ok( ret, "GetColorDirectoryA() failed (%d)\n", GetLastError() );
+ ok( ret, "GetColorDirectoryA() failed (%lu)\n", GetLastError() );
MSCMS_basenameA( testprofile, base );
@@ -1173,11 +1170,11 @@ static void test_UninstallColorProfileA( char *testprofile )
lstrcatA( dest, base );
ret = pUninstallColorProfileA( NULL, dest, TRUE );
- ok( ret, "UninstallColorProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "UninstallColorProfileA() failed (%lu)\n", GetLastError() );
/* Check if the profile is really gone */
handle = CreateFileA( dest, 0 , 0, NULL, OPEN_EXISTING, 0, NULL );
- ok( handle == INVALID_HANDLE_VALUE, "Found the profile (%d)\n", GetLastError() );
+ ok( handle == INVALID_HANDLE_VALUE, "Found the profile (%lu)\n", GetLastError() );
CloseHandle( handle );
}
}
@@ -1189,10 +1186,10 @@ static void test_UninstallColorProfileW( WCHAR *testprofileW )
/* Parameter checks */
ret = pUninstallColorProfileW( NULL, NULL, FALSE );
- ok( !ret, "UninstallColorProfileW() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "UninstallColorProfileW() succeeded (%lu)\n", GetLastError() );
ret = pUninstallColorProfileW( machineW, NULL, FALSE );
- ok( !ret, "UninstallColorProfileW() succeeded (%d)\n", GetLastError() );
+ ok( !ret, "UninstallColorProfileW() succeeded (%lu)\n", GetLastError() );
/* Functional checks */
@@ -1211,10 +1208,10 @@ static void test_UninstallColorProfileW( WCHAR *testprofileW )
skip("Not enough rights for InstallColorProfileW\n");
return;
}
- ok( ret, "InstallColorProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "InstallColorProfileW() failed (%lu)\n", GetLastError() );
ret = pGetColorDirectoryW( NULL, dest, &size );
- ok( ret, "GetColorDirectoryW() failed (%d)\n", GetLastError() );
+ ok( ret, "GetColorDirectoryW() failed (%lu)\n", GetLastError() );
MSCMS_basenameW( testprofileW, base );
@@ -1222,13 +1219,13 @@ static void test_UninstallColorProfileW( WCHAR *testprofileW )
lstrcatW( dest, base );
ret = pUninstallColorProfileW( NULL, dest, TRUE );
- ok( ret, "UninstallColorProfileW() failed (%d)\n", GetLastError() );
+ ok( ret, "UninstallColorProfileW() failed (%lu)\n", GetLastError() );
bytes_copied = WideCharToMultiByte(CP_ACP, 0, dest, -1, destA, MAX_PATH, NULL, NULL);
ok( bytes_copied > 0 , "WideCharToMultiByte() returns %d\n", bytes_copied);
/* Check if the profile is really gone */
handle = CreateFileA( destA, 0 , 0, NULL, OPEN_EXISTING, 0, NULL );
- ok( handle == INVALID_HANDLE_VALUE, "Found the profile (%d)\n", GetLastError() );
+ ok( handle == INVALID_HANDLE_VALUE, "Found the profile (%lu)\n", GetLastError() );
CloseHandle( handle );
}
}
@@ -1255,56 +1252,56 @@ static void test_AssociateColorProfileWithDeviceA( char *testprofile )
ret = pAssociateColorProfileWithDeviceA( "machine", testprofile, NULL );
error = GetLastError();
ok( !ret, "AssociateColorProfileWithDevice() succeeded\n" );
- ok( error == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %u\n", error );
+ ok( error == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %lu\n", error );
SetLastError(0xdeadbeef);
ret = pAssociateColorProfileWithDeviceA( "machine", NULL, monitor.DeviceID );
error = GetLastError();
ok( !ret, "AssociateColorProfileWithDevice() succeeded\n" );
- ok( error == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %u\n", error );
+ ok( error == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %lu\n", error );
SetLastError(0xdeadbeef);
ret = pAssociateColorProfileWithDeviceA( "machine", testprofile, monitor.DeviceID );
error = GetLastError();
ok( !ret, "AssociateColorProfileWithDevice() succeeded\n" );
- ok( error == ERROR_NOT_SUPPORTED, "expected ERROR_NOT_SUPPORTED, got %u\n", error );
+ ok( error == ERROR_NOT_SUPPORTED, "expected ERROR_NOT_SUPPORTED, got %lu\n", error );
ret = pInstallColorProfileA( NULL, testprofile );
- ok( ret, "InstallColorProfileA() failed (%u)\n", GetLastError() );
+ ok( ret, "InstallColorProfileA() failed (%lu)\n", GetLastError() );
ret = pGetColorDirectoryA( NULL, profile, &size );
- ok( ret, "GetColorDirectoryA() failed (%d)\n", GetLastError() );
+ ok( ret, "GetColorDirectoryA() failed (%lu)\n", GetLastError() );
MSCMS_basenameA( testprofile, basename );
lstrcatA( profile, "\\" );
lstrcatA( profile, basename );
ret = pAssociateColorProfileWithDeviceA( NULL, profile, monitor.DeviceID );
- ok( ret, "AssociateColorProfileWithDevice() failed (%u)\n", GetLastError() );
+ ok( ret, "AssociateColorProfileWithDevice() failed (%lu)\n", GetLastError() );
SetLastError(0xdeadbeef);
ret = pDisassociateColorProfileFromDeviceA( "machine", profile, NULL );
error = GetLastError();
ok( !ret, "DisassociateColorProfileFromDeviceA() succeeded\n" );
- ok( error == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %u\n", error );
+ ok( error == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %lu\n", error );
SetLastError(0xdeadbeef);
ret = pDisassociateColorProfileFromDeviceA( "machine", NULL, monitor.DeviceID );
error = GetLastError();
ok( !ret, "DisassociateColorProfileFromDeviceA() succeeded\n" );
- ok( error == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %u\n", error );
+ ok( error == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %lu\n", error );
SetLastError(0xdeadbeef);
ret = pDisassociateColorProfileFromDeviceA( "machine", profile, monitor.DeviceID );
error = GetLastError();
ok( !ret, "DisassociateColorProfileFromDeviceA() succeeded\n" );
- ok( error == ERROR_NOT_SUPPORTED, "expected ERROR_NOT_SUPPORTED, got %u\n", error );
+ ok( error == ERROR_NOT_SUPPORTED, "expected ERROR_NOT_SUPPORTED, got %lu\n", error );
ret = pDisassociateColorProfileFromDeviceA( NULL, profile, monitor.DeviceID );
- ok( ret, "DisassociateColorProfileFromDeviceA() failed (%u)\n", GetLastError() );
+ ok( ret, "DisassociateColorProfileFromDeviceA() failed (%lu)\n", GetLastError() );
ret = pUninstallColorProfileA( NULL, profile, TRUE );
- ok( ret, "UninstallColorProfileA() failed (%d)\n", GetLastError() );
+ ok( ret, "UninstallColorProfileA() failed (%lu)\n", GetLastError() );
}
else
skip("Unable to obtain monitor name\n");
@@ -1340,17 +1337,17 @@ static void test_CreateMultiProfileTransform( char *standardprofile, char *testp
profile.cbDataSize = strlen(standardprofile);
handle[0] = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle[0] != NULL, "got %u\n", GetLastError() );
+ ok( handle[0] != NULL, "got %lu\n", GetLastError() );
profile.dwType = PROFILE_FILENAME;
profile.pProfileData = testprofile;
profile.cbDataSize = strlen(testprofile);
handle[1] = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
- ok( handle[1] != NULL, "got %u\n", GetLastError() );
+ ok( handle[1] != NULL, "got %lu\n", GetLastError() );
transform = pCreateMultiProfileTransform( handle, 2, intents, 2, 0, 0 );
- ok( transform != NULL, "got %u\n", GetLastError() );
+ ok( transform != NULL, "got %lu\n", GetLastError() );
pDeleteColorTransform( transform );
pCloseColorProfile( handle[0] );
@@ -1387,7 +1384,7 @@ START_TEST(profile)
/* See if we can find the standard color profile */
ret = GetSystemDirectoryA( profilefile1, sizeof(profilefile1) );
- ok( ret > 0, "GetSystemDirectoryA() returns %d, LastError = %d\n", ret, GetLastError());
+ ok( ret > 0, "GetSystemDirectoryA() returns %d, LastError = %lu\n", ret, GetLastError());
ok(profilefile1[0] && lstrlenA(profilefile1) < MAX_PATH,
"Expected length between 0 and MAX_PATH, got %d\n", lstrlenA(profilefile1));
MultiByteToWideChar(CP_ACP, 0, profilefile1, -1, profilefile1W, MAX_PATH);
diff --git a/dlls/mscms/transform.c b/dlls/mscms/transform.c
index 8296341f7b7..0d48e217d66 100644
--- a/dlls/mscms/transform.c
+++ b/dlls/mscms/transform.c
@@ -48,13 +48,13 @@ static DWORD from_bmformat( BMFORMAT format )
default:
if (!quietfixme)
{
- FIXME( "unhandled bitmap format %08x\n", format );
+ FIXME( "unhandled bitmap format %#x\n", format );
quietfixme = TRUE;
}
ret = TYPE_RGB_8;
break;
}
- TRACE( "color space: %08x -> %08x\n", format, ret );
+ TRACE( "color space: %#x -> %#lx\n", format, ret );
return ret;
}
@@ -76,7 +76,7 @@ static DWORD from_type( COLORTYPE type )
break;
}
- TRACE( "color type: %08x -> %08x\n", type, ret );
+ TRACE( "color type: %#x -> %#lx\n", type, ret );
return ret;
}
@@ -85,13 +85,12 @@ static DWORD from_type( COLORTYPE type )
*
* See CreateColorTransformW.
*/
-HTRANSFORM WINAPI CreateColorTransformA( LPLOGCOLORSPACEA space, HPROFILE dest,
- HPROFILE target, DWORD flags )
+HTRANSFORM WINAPI CreateColorTransformA( LPLOGCOLORSPACEA space, HPROFILE dest, HPROFILE target, DWORD flags )
{
LOGCOLORSPACEW spaceW;
DWORD len;
- TRACE( "( %p, %p, %p, 0x%08x )\n", space, dest, target, flags );
+ TRACE( "( %p, %p, %p, %#lx )\n", space, dest, target, flags );
if (!space || !dest) return FALSE;
@@ -119,8 +118,7 @@ HTRANSFORM WINAPI CreateColorTransformA( LPLOGCOLORSPACEA space, HPROFILE dest,
* Success: Handle to a transform.
* Failure: NULL
*/
-HTRANSFORM WINAPI CreateColorTransformW( LPLOGCOLORSPACEW space, HPROFILE dest,
- HPROFILE target, DWORD flags )
+HTRANSFORM WINAPI CreateColorTransformW( LPLOGCOLORSPACEW space, HPROFILE dest, HPROFILE target, DWORD flags )
{
HTRANSFORM ret = NULL;
cmsHTRANSFORM transform;
@@ -129,7 +127,7 @@ HTRANSFORM WINAPI CreateColorTransformW( LPLOGCOLORSPACEW space, HPROFILE dest,
cmsHPROFILE input;
int intent;
- TRACE( "( %p, %p, %p, 0x%08x )\n", space, dest, target, flags );
+ TRACE( "( %p, %p, %p, %#lx )\n", space, dest, target, flags );
if (!space || !(dst = grab_profile( dest ))) return FALSE;
@@ -140,7 +138,7 @@ HTRANSFORM WINAPI CreateColorTransformW( LPLOGCOLORSPACEW space, HPROFILE dest,
}
intent = space->lcsIntent > 3 ? INTENT_PERCEPTUAL : space->lcsIntent;
- TRACE( "lcsIntent: %x\n", space->lcsIntent );
+ TRACE( "lcsIntent: %#lx\n", space->lcsIntent );
TRACE( "lcsCSType: %s\n", dbgstr_tag( space->lcsCSType ) );
TRACE( "lcsFilename: %s\n", debugstr_w( space->lcsFilename ) );
@@ -186,8 +184,7 @@ HTRANSFORM WINAPI CreateMultiProfileTransform( PHPROFILE profiles, DWORD nprofil
cmsHTRANSFORM transform;
struct profile *profile0, *profile1;
- TRACE( "( %p, 0x%08x, %p, 0x%08x, 0x%08x, 0x%08x )\n",
- profiles, nprofiles, intents, nintents, flags, cmm );
+ TRACE( "( %p, %#lx, %p, %lu, %#lx, %#lx )\n", profiles, nprofiles, intents, nintents, flags, cmm );
if (!profiles || !nprofiles || !intents) return NULL;
@@ -265,7 +262,7 @@ BOOL WINAPI TranslateBitmapBits( HTRANSFORM handle, PVOID srcbits, BMFORMAT inpu
BOOL ret;
cmsHTRANSFORM transform = grab_transform( handle );
- TRACE( "( %p, %p, 0x%08x, 0x%08x, 0x%08x, 0x%08x, %p, 0x%08x, 0x%08x, %p, 0x%08x )\n",
+ TRACE( "( %p, %p, %#x, %lu, %lu, %lu, %p, %#x, %lu, %p, %#lx )\n",
handle, srcbits, input, width, height, inputstride, destbits, output,
outputstride, callback, data );
@@ -300,7 +297,7 @@ BOOL WINAPI TranslateColors( HTRANSFORM handle, PCOLOR in, DWORD count,
unsigned int i;
cmsHTRANSFORM transform = grab_transform( handle );
- TRACE( "( %p, %p, %d, %d, %p, %d )\n", handle, in, count, input_type, out, output_type );
+ TRACE( "( %p, %p, %lu, %d, %p, %d )\n", handle, in, count, input_type, out, output_type );
if (!transform) return FALSE;
--
2.30.2
2
1
Signed-off-by: Hans Leidekker <hans(a)codeweavers.com>
---
dlls/msv1_0/Makefile.in | 1 -
dlls/msv1_0/main.c | 50 ++++++++++++++++++++---------------------
2 files changed, 25 insertions(+), 26 deletions(-)
diff --git a/dlls/msv1_0/Makefile.in b/dlls/msv1_0/Makefile.in
index 8367caede9c..439d74d7bb9 100644
--- a/dlls/msv1_0/Makefile.in
+++ b/dlls/msv1_0/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = msv1_0.dll
UNIXLIB = msv1_0.so
IMPORTS = netapi32 advapi32
diff --git a/dlls/msv1_0/main.c b/dlls/msv1_0/main.c
index 32783f2f6cf..77dcfa3b67d 100644
--- a/dlls/msv1_0/main.c
+++ b/dlls/msv1_0/main.c
@@ -111,7 +111,7 @@ static NTSTATUS NTAPI ntlm_LsaApInitializePackage( ULONG package_id, LSA_DISPATC
LSA_STRING *str;
char *ptr;
- TRACE( "%08x, %p, %s, %s, %p\n", package_id, dispatch, debugstr_as(database), debugstr_as(confidentiality),
+ TRACE( "%#lx, %p, %s, %s, %p\n", package_id, dispatch, debugstr_as(database), debugstr_as(confidentiality),
package_name );
if (ntlm_check_version())
@@ -135,7 +135,7 @@ static NTSTATUS NTAPI ntlm_LsaApInitializePackage( ULONG package_id, LSA_DISPATC
static NTSTATUS NTAPI ntlm_SpInitialize( ULONG_PTR package_id, SECPKG_PARAMETERS *params,
LSA_SECPKG_FUNCTION_TABLE *lsa_function_table )
{
- TRACE( "%lu, %p, %p\n", package_id, params, lsa_function_table );
+ TRACE( "%#Ix, %p, %p\n", package_id, params, lsa_function_table );
if (ntlm_check_version())
{
@@ -192,7 +192,7 @@ static NTSTATUS NTAPI ntlm_SpAcquireCredentialsHandle( UNICODE_STRING *principal
WCHAR *domain = NULL, *user = NULL, *password = NULL;
SEC_WINNT_AUTH_IDENTITY_W *id = NULL;
- TRACE( "%s, 0x%08x, %p, %p, %p, %p, %p, %p\n", debugstr_us(principal), cred_use, logon_id, auth_data,
+ TRACE( "%s, %#lx, %p, %p, %p, %p, %p, %p\n", debugstr_us(principal), cred_use, logon_id, auth_data,
get_key_fn, get_key_arg, cred, expiry );
switch (cred_use & ~SECPKG_CRED_RESERVED)
@@ -298,7 +298,7 @@ static NTSTATUS NTAPI ntlm_SpFreeCredentialsHandle( LSA_SEC_HANDLE handle )
{
struct ntlm_cred *cred = (struct ntlm_cred *)handle;
- TRACE( "%lx\n", handle );
+ TRACE( "%#Ix\n", handle );
if (!cred) return SEC_E_OK;
@@ -589,7 +589,7 @@ static NTSTATUS NTAPI ntlm_SpInitLsaModeContext( LSA_SEC_HANDLE cred_handle, LSA
unsigned int len, bin_len;
int idx;
- TRACE( "%lx, %lx, %s, 0x%08x, %u, %p, %p, %p, %p, %p, %p, %p\n", cred_handle, ctx_handle, debugstr_us(target),
+ TRACE( "%#Ix, %#Ix, %s, %#lx, %lu, %p, %p, %p, %p, %p, %p, %p\n", cred_handle, ctx_handle, debugstr_us(target),
ctx_req, data_rep, input, new_ctx_handle, output, ctx_attr, expiry, mapped_ctx, ctx_data );
/* when communicating with the client there can be the following reply packets:
@@ -875,7 +875,7 @@ done:
free( bin );
free( want_flags );
- TRACE( "returning %08x\n", status );
+ TRACE( "returning %#lx\n", status );
return status;
}
@@ -890,9 +890,9 @@ static NTSTATUS NTAPI ntlm_SpAcceptLsaModeContext( LSA_SEC_HANDLE cred_handle, L
char *buf, *bin, *want_flags = NULL;
unsigned int len, bin_len;
- TRACE( "%lx, %lx, %08x, %u, %p, %p, %p, %p, %p, %p, %p\n", cred_handle, ctx_handle, ctx_req, data_rep, input,
+ TRACE( "%#Ix, %#Ix, %#lx, %lu, %p, %p, %p, %p, %p, %p, %p\n", cred_handle, ctx_handle, ctx_req, data_rep, input,
new_ctx_handle, output, ctx_attr, expiry, mapped_ctx, ctx_data );
- if (ctx_req) FIXME( "ignoring flags %08x\n", ctx_req );
+ if (ctx_req) FIXME( "ignoring flags %#lx\n", ctx_req );
if (!(buf = malloc( NTLM_MAX_BUF ))) return SEC_E_INSUFFICIENT_MEMORY;
if (!(bin = malloc( NTLM_MAX_BUF ))) goto done;
@@ -1088,7 +1088,7 @@ done:
free( bin );
free( want_flags );
- TRACE( "returning %08x\n", status );
+ TRACE( "returning %#lx\n", status );
return status;
}
@@ -1096,7 +1096,7 @@ static NTSTATUS NTAPI ntlm_SpDeleteContext( LSA_SEC_HANDLE handle )
{
struct ntlm_ctx *ctx = (struct ntlm_ctx *)handle;
- TRACE( "%lx\n", handle );
+ TRACE( "%#Ix\n", handle );
if (!ctx) return SEC_E_INVALID_HANDLE;
ntlm_cleanup( ctx );
@@ -1124,7 +1124,7 @@ static SecPkgInfoW *build_package_info( const SecPkgInfoW *info )
static NTSTATUS NTAPI ntlm_SpQueryContextAttributes( LSA_SEC_HANDLE handle, ULONG attr, void *buf )
{
- TRACE( "%lx, %u, %p\n", handle, attr, buf );
+ TRACE( "%#Ix, %lu, %p\n", handle, attr, buf );
if (!handle) return SEC_E_INVALID_HANDLE;
@@ -1171,7 +1171,7 @@ static NTSTATUS NTAPI ntlm_SpQueryContextAttributes( LSA_SEC_HANDLE handle, ULON
}
#undef X
default:
- FIXME( "unknown attribute %u\n", attr );
+ FIXME( "unknown attribute %lu\n", attr );
break;
}
@@ -1221,7 +1221,7 @@ static SECPKG_FUNCTION_TABLE ntlm_table =
NTSTATUS NTAPI SpLsaModeInitialize( ULONG lsa_version, ULONG *package_version, SECPKG_FUNCTION_TABLE **table,
ULONG *table_count )
{
- TRACE( "%08x, %p, %p, %p\n", lsa_version, package_version, table, table_count );
+ TRACE( "%#lx, %p, %p, %p\n", lsa_version, package_version, table, table_count );
*package_version = SECPKG_INTERFACE_VERSION;
*table = &ntlm_table;
@@ -1231,7 +1231,7 @@ NTSTATUS NTAPI SpLsaModeInitialize( ULONG lsa_version, ULONG *package_version, S
static NTSTATUS NTAPI ntlm_SpInstanceInit( ULONG version, SECPKG_DLL_FUNCTIONS *dll_functions, void **user_functions )
{
- TRACE( "%08x, %p, %p\n", version, dll_functions, user_functions );
+ TRACE( "%#lx, %p, %p\n", version, dll_functions, user_functions );
return STATUS_SUCCESS;
}
@@ -1400,9 +1400,9 @@ static NTSTATUS NTAPI ntlm_SpMakeSignature( LSA_SEC_HANDLE handle, ULONG qop, Se
struct ntlm_ctx *ctx = (struct ntlm_ctx *)handle;
int idx;
- TRACE( "%lx, 0x%08x, %p, %u\n", handle, qop, msg, msg_seq_no );
- if (qop) FIXME( "ignoring quality of protection %08x\n", qop );
- if (msg_seq_no) FIXME( "ignoring message sequence number %u\n", msg_seq_no );
+ TRACE( "%#Ix, %#lx, %p, %lu\n", handle, qop, msg, msg_seq_no );
+ if (qop) FIXME( "ignoring quality of protection %#lx\n", qop );
+ if (msg_seq_no) FIXME( "ignoring message sequence number %lu\n", msg_seq_no );
if (!handle) return SEC_E_INVALID_HANDLE;
if (!msg || !msg->pBuffers || msg->cBuffers < 2 || (idx = get_buffer_index( msg, SECBUFFER_TOKEN )) == -1)
@@ -1456,8 +1456,8 @@ static NTSTATUS NTAPI ntlm_SpVerifySignature( LSA_SEC_HANDLE handle, SecBufferDe
struct ntlm_ctx *ctx = (struct ntlm_ctx *)handle;
int idx;
- TRACE( "%lx, %p, %u, %p\n", handle, msg, msg_seq_no, qop );
- if (msg_seq_no) FIXME( "ignoring message sequence number %u\n", msg_seq_no );
+ TRACE( "%#Ix, %p, %lu, %p\n", handle, msg, msg_seq_no, qop );
+ if (msg_seq_no) FIXME( "ignoring message sequence number %lu\n", msg_seq_no );
if (!handle) return SEC_E_INVALID_HANDLE;
if (!msg || !msg->pBuffers || msg->cBuffers < 2 || (idx = get_buffer_index( msg, SECBUFFER_TOKEN )) == -1)
@@ -1472,9 +1472,9 @@ static NTSTATUS NTAPI ntlm_SpSealMessage( LSA_SEC_HANDLE handle, ULONG qop, SecB
int token_idx, data_idx;
struct ntlm_ctx *ctx;
- TRACE( "%lx, %08x, %p %u\n", handle, qop, msg, msg_seq_no );
- if (qop) FIXME( "ignoring quality of protection %08x\n", qop );
- if (msg_seq_no) FIXME( "ignoring message sequence number %u\n", msg_seq_no );
+ TRACE( "%#Ix, %#lx, %p %lu\n", handle, qop, msg, msg_seq_no );
+ if (qop) FIXME( "ignoring quality of protection %#lx\n", qop );
+ if (msg_seq_no) FIXME( "ignoring message sequence number %lu\n", msg_seq_no );
if (!handle) return SEC_E_INVALID_HANDLE;
@@ -1514,8 +1514,8 @@ static NTSTATUS NTAPI ntlm_SpUnsealMessage( LSA_SEC_HANDLE handle, SecBufferDesc
int token_idx, data_idx;
struct ntlm_ctx *ctx;
- TRACE( "%lx, %p, %u, %p\n", handle, msg, msg_seq_no, qop );
- if (msg_seq_no) FIXME( "ignoring message sequence number %u\n", msg_seq_no );
+ TRACE( "%#Ix, %p, %lu, %p\n", handle, msg, msg_seq_no, qop );
+ if (msg_seq_no) FIXME( "ignoring message sequence number %lu\n", msg_seq_no );
if (!handle) return SEC_E_INVALID_HANDLE;
@@ -1559,7 +1559,7 @@ static SECPKG_USER_FUNCTION_TABLE ntlm_user_table =
NTSTATUS NTAPI SpUserModeInitialize( ULONG lsa_version, ULONG *package_version, SECPKG_USER_FUNCTION_TABLE **table,
ULONG *table_count )
{
- TRACE( "%08x, %p, %p, %p\n", lsa_version, package_version, table, table_count );
+ TRACE( "%#lx, %p, %p, %p\n", lsa_version, package_version, table, table_count );
*package_version = SECPKG_INTERFACE_VERSION;
*table = &ntlm_user_table;
--
2.30.2
1
0
https://bugs.winehq.org/show_bug.cgi?id=52048
Basically, when calling CreateProcess with current console inheritance (no
CREATE_NEW_CONSOLE nor DETACHED_PROCESS), and that the child is a CUI
program, native behaves as if CREATE_NEW_CONSOLE was passed.
builtin doesn't...
this serie:
- adds a test case for this case
(which requires to extend makedep to support creation of exe sub-modules)
- fixes kernelbase accordingly
- but also requires to fix the usage of CreateProcess that will now force
the creation of a console
+ one patch of wow64 redirection (only for CUI executables)
+ after quickly auditing all CreateProcess calls, I fixed a couple of
them.
---
Eric Pouech (4):
tools/makedep: extend submodule in testdll to support exe as well as dll
dlls/kernel32/tests: add tests about CreateProcess on CUI programs with console inheritance
programs: don't recreate a console when redirecting a program to wow64
dlls/kernelbase: in CreateProcess, allocate a console for CUI process
dlls/kernel32/tests/Makefile.in | 4 ++
dlls/kernel32/tests/console.c | 56 ++++++++++++++++++++++++++++
dlls/kernel32/tests/console_cui.c | 31 +++++++++++++++
dlls/kernel32/tests/console_cui.spec | 0
dlls/kernelbase/process.c | 6 ++-
programs/services/services.c | 2 +-
programs/uninstaller/main.c | 6 ++-
programs/winedbg/winedbg.c | 3 +-
programs/wusa/main.c | 3 +-
tools/makedep.c | 10 +++--
10 files changed, 111 insertions(+), 10 deletions(-)
create mode 100644 dlls/kernel32/tests/console_cui.c
create mode 100644 dlls/kernel32/tests/console_cui.spec
4
6
11 Feb '22
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52434
Signed-off-by: Zhiyi Zhang <zzhang(a)codeweavers.com>
---
.../blue_treeview_expand_collapse_11px.bmp | Bin 1106 -> 930 bytes
.../blue_treeview_expand_collapse_11px.svg | 14 ++++++++++----
.../blue_treeview_expand_collapse_13px.bmp | Bin 1490 -> 1178 bytes
.../blue_treeview_expand_collapse_13px.svg | 14 ++++++++++----
.../blue_treeview_expand_collapse_16px.bmp | Bin 2186 -> 1674 bytes
.../blue_treeview_expand_collapse_16px.svg | 14 ++++++++++----
.../blue_treeview_expand_collapse_18px.bmp | Bin 2730 -> 2154 bytes
.../blue_treeview_expand_collapse_18px.svg | 14 +++++++++-----
.../blue_treeview_expand_collapse_20px.bmp | Bin 3338 -> 2538 bytes
.../blue_treeview_expand_collapse_20px.svg | 14 +++++++++-----
.../blue_treeview_expand_collapse_23px.bmp | Bin 4370 -> 3450 bytes
.../blue_treeview_expand_collapse_23px.svg | 14 +++++++++-----
.../blue_treeview_expand_collapse_9px.bmp | Bin 786 -> 642 bytes
.../blue_treeview_expand_collapse_9px.svg | 15 ++++++++++-----
14 files changed, 67 insertions(+), 32 deletions(-)
diff --git a/dlls/light.msstyles/blue_treeview_expand_collapse_11px.bmp b/dlls/light.msstyles/blue_treeview_expand_collapse_11px.bmp
index ca04c0d291fc37479da3b6e7c21741c61ec5074b..ec33b3c461b841ab98e3138fcbc0edc6d066e1ce 100644
GIT binary patch
literal 930
zcmZ?rUBt`)23<h128g+VSPY0686<!t1A_!q9?XFg{}~t{2qf~~$vvnTE=44R1x?*L
zLI9{9sN_Fx0F)gNHE14zaDmPoDEHtBA-H>h3_Ji5hIkYJr66kl{r`^(VO0avg{+<y
fY9N7+MglFRg<WvJ5aTbnVh9879v}k`0GbQ{TRBrM
literal 1106
zcmbu;K?;IE6b9h2f}kK;wTPgO-~oa{h*oVpNf6Ygh0ADPi?(foP%%O90%6cCqB=uu
zrvFufPL2u<{XXWs&q)_*BfZ4lYl-U|sUi(TVI5XP4e0W-IAfn5O}IAHCqE>k@%`Hj
zB_BUls_|T_To&=pG%s4(%Y2fRd6`Y}X;$=EHtO@((C4-PI?J*)p68YGoCC{|lWCf*
zEKk<9?J4RFwV&q6(j2viT#*^)TuHhov^1mVKmwe<^L?K_m)MG08sI%^=v|O~3}O?t
zj^i}3KjQ2I&aTTWOc$Z&T^NQ(a)5FPC?<2YxGdPfFHChU<#&hYK9C#!H<*L5qhIrU#w
Cztr~t
diff --git a/dlls/light.msstyles/blue_treeview_expand_collapse_11px.svg b/dlls/light.msstyles/blue_treeview_expand_collapse_11px.svg
index 59df40cb0e4..b94a832605f 100644
--- a/dlls/light.msstyles/blue_treeview_expand_collapse_11px.svg
+++ b/dlls/light.msstyles/blue_treeview_expand_collapse_11px.svg
@@ -1,14 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
-<svg id="bitmap:11-32" width="11" height="22" version="1.1" viewBox="0 0 2.9104 5.8209" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+<svg id="bitmap:11-24" width="11" height="22" version="1.1" viewBox="0 0 2.9104 5.8209" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
- <dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
- <path d="m0.66143 2.6368 1.5026-1.1842-1.5026-1.1842z" fill="none" stroke="#aeaeae" stroke-width=".26458"/>
- <path d="m0.26456 5.5563h2.1167v-2.1167z" fill="#3096fa" stroke-width=".19844"/>
+ <g transform="matrix(1 0 0 1 -.1323 -.13229)" stroke="#aeaeae" stroke-width=".26458">
+ <rect x=".26456" y=".26458" width="2.6458" height="2.6458" fill="#fffffe"/>
+ <rect x=".26456" y="3.175" width="2.6458" height="2.6458" fill="#fff"/>
+ </g>
+ <g transform="matrix(1 0 0 1 -.1323 -.13229)" stroke-width=".26458">
+ <path d="m0.66145 1.4552h1.8521v0.26458h-1.8521z"/>
+ <path d="m1.7198 0.66147v1.8521h-0.26458v-1.8521z"/>
+ <path d="m0.66144 4.3656h1.8521v0.26458h-1.8521z"/>
+ </g>
</svg>
diff --git a/dlls/light.msstyles/blue_treeview_expand_collapse_13px.bmp b/dlls/light.msstyles/blue_treeview_expand_collapse_13px.bmp
index 9edaf18e26b4b5158398e2ca307a90b2127a62de..0e8978b69a478239893a76832216bc4b5db00dbd 100644
GIT binary patch
literal 1178
zcmZ?royEcc23<h128elqSPF<486<!t1A_om9?XFg{}~t{2qf~~$vvnTE=42*-Pm=+
z0S2J5|AYWg%@9$CC$NB?96J8MA0tqI04ah16mP@;kh*{W|KmqMHCWUE!yHZ9z^lWP
a4uEbQc=sU(7_s4ptOvq|`U6N21PlP{%TUt*
literal 1490
zcmcJPziPuU5XP1NOOvH!Ng?zR@(fwpB}-nVLzhrAmMn!p3MLsl6jRxoA!JB120E2M
zpCwt;@6rgwA<Hr}!k<rf_x&VWU=K&%4RIP%+$T^Q>OmE8D{6(a)M=RT&^&_euORMW$|
z(a)q^V2n%09{moXjY19^NMXrEj=7jZ6zYCbNH(a)o_#Tk1JwaTnNLtP{!uUForA3{I@?z
zl4q(a)TrOdiuG_;80m_Dtbab{MCD$BA~2t*9_Xr^iUj`;>$r-&nlJoHZBUXXubjjoR~
zjPW3Ugnq#FO^rv+P#-mVzfbNpxy{h?A)i8f>~mv0JQ(a)a`no??sd<R`~pPds!XAJ)b
n&R`Ap%I>@7#6Vl<Es7%N-;#60VEvhtvdVjTIhd!so?ZV1Nxc7-
diff --git a/dlls/light.msstyles/blue_treeview_expand_collapse_13px.svg b/dlls/light.msstyles/blue_treeview_expand_collapse_13px.svg
index f63653a8430..f2cb889813f 100644
--- a/dlls/light.msstyles/blue_treeview_expand_collapse_13px.svg
+++ b/dlls/light.msstyles/blue_treeview_expand_collapse_13px.svg
@@ -1,14 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
-<svg id="bitmap:13-32" width="13" height="26" version="1.1" viewBox="0 0 3.4396 6.8792" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+<svg id="bitmap:13-24" width="13" height="26" version="1.1" viewBox="0 0 3.4396 6.8792" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
- <dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
- <path d="m0.92604 3.1357 1.5306-1.4107-1.5306-1.4107z" fill="none" stroke="#aeaeae" stroke-width=".26458"/>
- <path d="m0.26458 6.35h2.3813v-2.3813z" fill="#3096fa" stroke-width=".19844"/>
+ <g transform="matrix(1 0 0 1 -.059604 -.068297)" stroke="#aeaeae" stroke-width=".26458">
+ <rect x=".19189" y=".20059" width="3.175" height="3.175" fill="#fffffe"/>
+ <rect x=".19189" y="3.6402" width="3.175" height="3.175" fill="#fff"/>
+ </g>
+ <g transform="matrix(1 0 0 1 -.059604 -.068297)" stroke-width=".26458">
+ <path d="m0.58877 1.6558h2.3812v0.26458h-2.3812z"/>
+ <path d="m1.9117 0.59746v2.3812h-0.26458v-2.3812z"/>
+ <path d="m0.58877 5.0954h2.3812v0.26458h-2.3812z"/>
+ </g>
</svg>
diff --git a/dlls/light.msstyles/blue_treeview_expand_collapse_16px.bmp b/dlls/light.msstyles/blue_treeview_expand_collapse_16px.bmp
index ab9813146d6dab88842b00214be7ad7446b89fb3..d9604ddcda24ee0567b997625265517c1ddd6516 100644
GIT binary patch
literal 1674
zcmZ?r?P6m9gDxOh1H=MAtN_G}3=%*R2%z#14vhTIzyLuYf&WhKLB%i`VrdpMh3iNM
z|A__=vx!#zf7qx;3uLTZV6edbi&X)dAhLQQgA{K5h*A&nHSNfM|Nj$-Aa1}^42fAx
o(a)nNGLE$L$A0=*CSFIEL;g2?L8f)1h*O>h{i$Mh*ggp4!~005K3O8@`>
literal 2186
zcmZ?r?c!hngDxOh1H=MAtN_G}K$00qGeG4*Oa%DPzyLuYq5n?qLB$9;;#e%iDWkip
zpHmGQeoZs(a)PYlN8IAYDfr5_|tj2Za!6JrJ;{e;XQMn66?h}DnF3{v!CGlNw9=w^_k
zAK46Y^~21dME_vcyLRo``I|Ry<|5aP>(;IN55!kCY}lYhju{~R>({SO0Mf63IG$89
zK>9&?)~s2h0c2kSnzd->&Yj%Engi1hQom}|Do!AO77$+t`bU=-Gm!Pe)C0xhfcP~K
zr^3W=(b)8Z)Dr6-T>3#~0OiDh_!TfrR)F}}051KM*bhuou|RWQ1MN-2W+$>3vi<Yt
z&*uR0Cjv3a;lFX?Ms=XRi{!*Vl6&)!-9`)><bEK&1`IE4V$`Fn0l62L?s(9}X~_ow
DJIPeq
diff --git a/dlls/light.msstyles/blue_treeview_expand_collapse_16px.svg b/dlls/light.msstyles/blue_treeview_expand_collapse_16px.svg
index caf7ddf36b5..25496924a86 100644
--- a/dlls/light.msstyles/blue_treeview_expand_collapse_16px.svg
+++ b/dlls/light.msstyles/blue_treeview_expand_collapse_16px.svg
@@ -1,14 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
-<svg id="bitmap:16-32" width="16" height="32" version="1.1" viewBox="0 0 4.2333 8.4667" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+<svg id="bitmap:16-24" width="16" height="32" version="1.1" viewBox="0 0 4.2333 8.4667" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
- <dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
- <path d="m0.92602 3.969 2.2916-1.7207-2.2916-1.7207z" fill="none" stroke="#aeaeae" stroke-width=".26458"/>
- <path d="m0.52914 7.9375h2.9104v-2.9104z" fill="#3096fa" stroke-width=".19844"/>
+ <g transform="translate(-.059625 -.0683)" stroke="#aeaeae" stroke-width=".26458">
+ <rect x=".19189" y=".20059" width="3.9688" height="3.9688" fill="#fffffe"/>
+ <rect x=".19189" y="4.4339" width="3.9688" height="3.9688" fill="#fff"/>
+ </g>
+ <g transform="translate(-.059625 -.0683)" stroke-width=".26458">
+ <path d="m0.58877 1.9204h3.175v0.52917h-3.175z"/>
+ <path d="m0.58877 6.1537h3.175v0.52917h-3.175z"/>
+ <path d="m2.4409 0.59747v3.175h-0.52917v-3.175z"/>
+ </g>
</svg>
diff --git a/dlls/light.msstyles/blue_treeview_expand_collapse_18px.bmp b/dlls/light.msstyles/blue_treeview_expand_collapse_18px.bmp
index ed6ba251404c7859d402cad390a54b4d0d686f29..90a5ce7a5795c9896f2656024dca57008e9d735e 100644
GIT binary patch
literal 2154
zcmZ?r&EjAHgDxOh1H?i=tOCT03=%++f#Cr=m_j4|GcZ69Nc_K(dr&c&0)ku?G!^T}
z0t^g5ZU0FGKrN&Cu!I?P!UZi}v2r1nquPg6A(|jIeONq#LkQJA9Ez|AkLtq`C_o`t
zxBzKV0XYAWstKqbtnc6d|0E%r=!2w8tnR>T->}n%mPN60A;E+iE?5<!31ZWS7UU2e
aXo92q(a)Z}KHc)%KTSOsDFfHbLqfdK$|wM;Gm
literal 2730
zcmeIxJqp4w6bJB#F6!ps?BF1X&@*&#a`6D-<m%w+;Owr0lQ(a)RbcI`C;@eX<db*TTR
z7DDOAYtli%(ARvt<VTWHdn6m;Rn~Yf5iLX)Q4t+cMcw)2(Nsz(#QUMK&>oH#N|M#A
zv1WbGq}#??-M3cAiM(BNtvrYF9E;;{EUuGh6>+kxqE4En<0M(SPTVqaRLj(ftTLRx
zVSWRy>+XXfXqrlJLd3~&oW6+#<KcPU6!nE_U5gxAi~aP_KEgWaoHKIBl2X>u-yzPv
z?+<8<TT~}ngRu$XioMOEvAjCTp*2O%ndXp%TpMvgNa|;mG^dRHz&5&{GQL;QbHwk8
Y?ngPtJf7$FVU+TJ>HY`Yeg4wCClAF{T>t<8
diff --git a/dlls/light.msstyles/blue_treeview_expand_collapse_18px.svg b/dlls/light.msstyles/blue_treeview_expand_collapse_18px.svg
index 727a373970a..1eeb7f300fd 100644
--- a/dlls/light.msstyles/blue_treeview_expand_collapse_18px.svg
+++ b/dlls/light.msstyles/blue_treeview_expand_collapse_18px.svg
@@ -1,16 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
-<svg id="bitmap:18-32" width="18" height="36" version="1.1" viewBox="0 0 4.7624 9.525" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+<svg id="bitmap:18-24" width="18" height="36" version="1.1" viewBox="0 0 4.7624 9.525" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
- <dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
- <g transform="matrix(2 0 0 2.0707 .13123 -.34848)">
- <path d="m0.66082 2.3416 1.1469-0.83167-1.1469-0.83167z" fill="none" stroke="#aeaeae" stroke-width=".13001"/>
- <path d="m0.46353 4.5126h1.4552v-1.4055z" fill="#3096fa" stroke-width=".097511"/>
+ <g transform="matrix(1 0 0 1 .20492 .19629)" stroke="#aeaeae" stroke-width=".26458">
+ <rect x="-.072682" y="-.064004" width="4.4979" height="4.4979" fill="#fffffe"/>
+ <rect x="-.072682" y="4.6985" width="4.4979" height="4.4979" fill="#fff"/>
+ </g>
+ <g transform="matrix(1 0 0 1 .20492 .19629)" stroke-width=".26458">
+ <path d="m0.58878 1.9204h3.175v0.52917h-3.175z"/>
+ <path d="m0.58878 6.6829h3.175v0.52917h-3.175z"/>
+ <path d="m2.4409 0.59746v3.175h-0.52917v-3.175z"/>
</g>
</svg>
diff --git a/dlls/light.msstyles/blue_treeview_expand_collapse_20px.bmp b/dlls/light.msstyles/blue_treeview_expand_collapse_20px.bmp
index 30982d5d41380915caa2201148c10626791e7b8c..d8bc9546e78e71713edb18cb44e35580052b2b16 100644
GIT binary patch
literal 2538
zcmZ?reZ|QD23<h128cy~SObU|86<!t149B-9?XFg{}~t{2qf~~$vvnTE=44R1x?*L
z%D{iJ0K`tRwEiE}OMJLdE3DAc3?44TZOHcGQH&;qsh4=4j_Ms+VFgJc^e6xQ|4#;j
zxRVTxKrQ(7Lb3oZlSlO;hYayyg;ucO;X=$u4re(a)y(WEf-BD)sChG(a)YQAJvN)CX|E~
TrfJ9`$nlFTP7E8OmuwOMct77Z
literal 3338
zcmeI!yGp}Q9LMoUb&+-ubQcHFt-I(@1P68T5!6j|ad2_yC=TMFg0E0W)7VZr6#5Jb
zinAB6FW?2(a)_pd$lk|sGPIfH|tznt`3J~>HG)0Wo93(n7W%>Ix}k~uQsOglNsa-Lmi
z3moV7B`rZ|Wn(|oC81(8q5ZEmzn>S&9~Z^IG;!CH#*Fi%&D2ctOidln#MJe4O%qSY
zH1(3qG+vyU){8Q;c*D%B-k(a)p2>osk8%CzbITj4uUtya&P&8D(a)V8N7g8HyVwJ@Y&33
zu)fF%xhJ#cLjMSiPpR=dZ;Rts*L9csdzigbo{Yj;;QbTXGgG>~d%cc1L)|U*CEHlH
zr{2+^C!;ErN}hV3wCeS`{FTw(hIuj=Ge_GI^L(V7*9D_IHJ<iO@`k&r>f*{IPsY}2
zwMF{9kexV7+H^eTwj>_qZdR|eF57r(NmktaY<?cT?-#hXE9TU~ozj_?>N9x%aAZB-
zQD$Dx81j94CI{+#rlp!6);7m&O09Jkbsh|PUY(K$V&i!guqJM7Jx|l#cXhqr07>y|
diff --git a/dlls/light.msstyles/blue_treeview_expand_collapse_20px.svg b/dlls/light.msstyles/blue_treeview_expand_collapse_20px.svg
index e6b567d5e94..cabc2fd2876 100644
--- a/dlls/light.msstyles/blue_treeview_expand_collapse_20px.svg
+++ b/dlls/light.msstyles/blue_treeview_expand_collapse_20px.svg
@@ -1,16 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
-<svg id="bitmap:20-32" width="20" height="40" version="1.1" viewBox="0 0 5.2916 10.583" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+<svg id="bitmap:20-24" width="20" height="40" version="1.1" viewBox="0 0 5.2916 10.583" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
- <dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
- <g transform="matrix(2 0 0 2.0707 .13123 -.34848)">
- <path d="m0.52855 2.5873 1.4194-1.1412-1.4194-1.1412z" fill="none" stroke="#aeaeae" stroke-width=".13001"/>
- <path d="m0.19896 5.0236h1.8521v-1.7888z" fill="#3096fa" stroke-width=".097512"/>
+ <g transform="matrix(.99999 0 0 .99999 .20497 .19619)" stroke="#aeaeae" stroke-width=".26458">
+ <rect x="-.072682" y="-.064004" width="5.0271" height="5.0271" fill="#fffffe"/>
+ <rect x="-.072682" y="5.2277" width="5.0271" height="5.0271" fill="#fff"/>
+ </g>
+ <g transform="matrix(.99999 0 0 .99999 .28401 .32966)" stroke-width=".26458">
+ <path d="m0.50973 2.0515h3.7042v0.52917h-3.7042z"/>
+ <path d="m0.50973 7.3431h3.7042v0.52917h-3.7042z"/>
+ <path d="m2.6264 0.46399v3.7042h-0.52917v-3.7042z"/>
</g>
</svg>
diff --git a/dlls/light.msstyles/blue_treeview_expand_collapse_23px.bmp b/dlls/light.msstyles/blue_treeview_expand_collapse_23px.bmp
index 3c42111b2dfd36a9bc3d201e27bde024a2a51626..61dee08bf96e63cae8a79258e701fa9f86babd21 100644
GIT binary patch
literal 3450
zcmZ?rt>R?>gDxOh1H|G$tOvx53=%++f#CxWm_j4|GcZ69Nc_K(dr&c&0)ku?G!^Tp
z0f1%#jrmU*0Gcpr4xS(!4Iey#1C&AwAGCB%3>RYlAU6kpAmEWj^A{eK_(a)ze88R6jr
zOaK%DNI6fTAwcaAbN>DRPYI%@Iq*^lkAsPE&!{=TP{I?20~kJVtBGeoJc1VQ#A}DE
pq^UVrLmSO%tZLBwg;mX{IfFJmV~sCj1c`}vlFR`bNFe|wGXQlH3^@P*
literal 4370
zcmeI!ze^io7{Kw1wxCk522s(a6sHz6(52uOhfcOoJLo^)Kj7fvaAU}>;FO`I!;$0?
z0&WgcXu*z!4z(bN7V{_g1FqjkbCBfT_uls|m(7<vxy$oB(a)8{lJ?vfPO@>9<JDD%8a
z%o0mP&UxXCvMoL5DKY}bd3Z=AD8Bo+9ceKno*3$n<=!)Jy;pE=_6tGU=+&aH2Jxd>
zG?UhkO6p7+UoEM#Nqx1V&nEHpioRm&>xKA=jUO+>S51EWY;!fvH_tYA=zQ}`yAG9a
zH`A`G-?y7(-_`Bg&$90feft^7I>k>m<FPwD1D(a)x}UyY%RdcA&#KRFB>J0N~Ho6W_n
zecW5$_qW(yv0cs57hAkqt+vAcKVl~<KeRjkOJ4utI0uZUgC3*X7K_jI8MaUU8!<D8
z-*1Z*1VIkprS`X4t-em{tL)ICwn4Os4`D9JHqI7@^}nU(Qr<@rS9(ph^l<IZ(|1CA
z<?|SqoXxPY#i>*(WAuI|e&Ek#X^SOm#{MJMQI>YA)tbgVCOq~hva<1(i8G?)y6%XL
zD?Rkz-}AbD-v1|h+I-in>w0u~oh|ndwH(a)Ld_l<6TTwY~&u8A+yzS~|Cs$=xqSPQK4
zC;3FzvdQk;gBQ4&e9wmKX04m-xAEVr){rKLcSn>lPaBQKt2Bmg4zB!O9&w)Yx}LOo
J)|<(1%zsjeaS;Fj
diff --git a/dlls/light.msstyles/blue_treeview_expand_collapse_23px.svg b/dlls/light.msstyles/blue_treeview_expand_collapse_23px.svg
index 6bd39dbfc67..87ad74eda29 100644
--- a/dlls/light.msstyles/blue_treeview_expand_collapse_23px.svg
+++ b/dlls/light.msstyles/blue_treeview_expand_collapse_23px.svg
@@ -1,16 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
-<svg id="bitmap:23-32" width="23" height="46" version="1.1" viewBox="0 0 6.0853 12.17" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+<svg id="bitmap:23-24" width="23" height="46" version="1.1" viewBox="0 0 6.0853 12.17" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
- <dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
- <g transform="matrix(2 0 0 2.0707 .13123 -.34848)">
- <path d="m0.66084 2.9897 1.6823-1.3432-1.6823-1.3432z" fill="none" stroke="#aeaeae" stroke-width=".13001"/>
- <path d="m0.33125 5.6625h2.1166v-2.0444z" fill="#3096fa" stroke-width=".097511"/>
+ <g transform="matrix(.99998 0 0 .99998 .33049 .33087)" stroke="#aeaeae" stroke-width=".26458">
+ <rect x="-.19821" y="-.19888" width="5.8208" height="5.8208" fill="#fffffe"/>
+ <rect x="-.19821" y="5.8865" width="5.8208" height="5.8208" fill="#fff"/>
+ </g>
+ <g transform="matrix(.99998 0 0 .99998 .40953 .46434)" stroke-width=".26458">
+ <path d="m0.38421 2.1812h4.4979v0.79375h-4.4979z"/>
+ <path d="m0.38421 8.2666h4.4979v0.79375h-4.4979z"/>
+ <path d="m3.03 0.3291v4.4979h-0.79375v-4.4979z"/>
</g>
</svg>
diff --git a/dlls/light.msstyles/blue_treeview_expand_collapse_9px.bmp b/dlls/light.msstyles/blue_treeview_expand_collapse_9px.bmp
index 239cf2d779f9e59e69198996b7eef8da472a4123..6348199b5ef6da5c6b7e13a1ec86c3d7933c3589 100644
GIT binary patch
literal 642
zcmZ?rZDL{ogDxOh1H_y_ECj(a)i3=%++f#C-um_j4|GcZ69Nc_K(dr&c&0)ku?G!^S`
z0|ubfe{29KPN5u{BY>7rZYHKnp=JUptN`Q(T!3i*0eu3u7-$%ZKJ0RY{f=E9#2S2Z
NaEAaHP`BXp9{>W&hA034
literal 786
zcmZ?r6=G%pgDxOh1H_y_ECj(a)i3<?Y&sSYL}fdT$AFhCGU=D(ABP%(xQ0s<@q<Z(&=
zoNCbUYns7-bd0VZn>utgAU?V}Y--Te;ZlRF4xbvBIznp5m0!1RUGM+@{~7V=2deqM
ze*OBTt5&UI!=(<S28cmm*T#(-d9kSj%KZnL!Mt|u+G#-cC7?Pfbafy#Ffkze2oUdt
b(a)nJMb4Kd~b)qwzB_YmQ)i46(a)6SW`9tD$0)A
diff --git a/dlls/light.msstyles/blue_treeview_expand_collapse_9px.svg b/dlls/light.msstyles/blue_treeview_expand_collapse_9px.svg
index 15ba25f8094..a47f9101a5b 100644
--- a/dlls/light.msstyles/blue_treeview_expand_collapse_9px.svg
+++ b/dlls/light.msstyles/blue_treeview_expand_collapse_9px.svg
@@ -1,16 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
-<svg id="bitmap:9-32" width="9" height="18" version="1.1" viewBox="0 0 2.3812 4.7625" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+<svg id="bitmap:9-24" width="9" height="18" version="1.1" viewBox="0 0 2.3812 4.7625" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
- <dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
- <g>
- <path d="m0.66146 2.0842 0.99269-0.89372-0.99269-0.89372z" fill="none" stroke="#aeaeae" stroke-width=".26458"/>
- <path d="m0.26458 4.4979h1.5875v-1.5875z" fill="#3096fa" stroke-width=".19844"/>
+ <g stroke-linejoin="round" stroke-width=".26458">
+ <rect x="-2.5e-5" width="2.3812" height="4.7625" fill="#fff"/>
+ <rect x=".13227" y=".13229" width="2.1167" height="2.1167" fill="none" stroke="#aeaeae" stroke-linejoin="miter"/>
+ <rect x=".13227" y="2.5135" width="2.1167" height="2.1167" fill="none" stroke="#aeaeae" stroke-linejoin="miter"/>
+ </g>
+ <g stroke-width=".26458">
+ <path d="m0.52914 1.0583h1.3229v0.26458h-1.3229z"/>
+ <path d="m0.52914 3.4396h1.3229v0.26458h-1.3229z"/>
+ <path d="m1.3229 0.52917v1.3229h-0.26458v-1.3229z"/>
</g>
</svg>
--
2.32.0
1
0
[PATCH 7/8] light.msstyles: Do not use transparent edges for trackbar horizontal and vertical thumb.
by Zhiyi Zhang 11 Feb '22
by Zhiyi Zhang 11 Feb '22
11 Feb '22
Signed-off-by: Zhiyi Zhang <zzhang(a)codeweavers.com>
---
.../blue_trackbar_thumb_horizontal.bmp | Bin 2418 -> 3918 bytes
.../blue_trackbar_thumb_horizontal.svg | 14 +++++++-------
.../blue_trackbar_thumb_vertical.bmp | Bin 4758 -> 3658 bytes
.../blue_trackbar_thumb_vertical.svg | 14 +++++++-------
dlls/light.msstyles/light.rc | 4 ++--
5 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/dlls/light.msstyles/blue_trackbar_thumb_horizontal.bmp b/dlls/light.msstyles/blue_trackbar_thumb_horizontal.bmp
index f3c8f55a9b2041f5d6b551124fb5d518218cb718..5a548024b186ab32f53fa15bd2903c46e5324526 100644
GIT binary patch
literal 3918
zcmeH}u}*_P7{|}V%|usULG925AE1kq4kpI>0IfPZ2|j_lh^Fxo8pJmcM(Yf7>)fPG
z2cgI3A4n;85OgAjaJjqQ_y7J}dtZK`*Ev4fVR5_1e21}xagDLTb}=*NY{wtcM2sap
z(y4QFdLtQr4L2pnVlj6d+ceFg*q}g17Je*T*X5j(*q}g179RNXhQtmXS$Oab;s!#5
zY~v9sA_n!Y&tLel?RU(a)f@|a~g1hKGTHxcI{l$7U&d6BGjRBy&`y7f_WtLo2QCG#{L
zlinq(a)MYnrGhw^wq(+S?aq(a)R;^AY(a)ZBbiEsS@;js+EVNeS$tp$b##3IRI(a)hP1A2sIZ
z;f&P%;u5JV4#6{QT8?KZz&PePoJ|7j(l-=eZwuW}g14)1{)IXRR-cas#C`dFz<vJl
zjK|@@4h4qff#tXVbQpQ`w!A|oMz--}>LD*{UY~M)3?<_5wZ}hS3NQnQqX8&|C!CD~
gt5?jk)d%hHG<O(a)BtyNt8|NDQtZ&dkvs=V9$07S=Y-T(jq
literal 2418
zcmeHJOHPD95XESW-ol*_H=}`tMqSLtl^ZYM9drX3PvG89GR_Sc2(VEPq9nTG=NW)b
zSp`!)lNmcRCMIs^@S2y`1tjl5HU0CeZLJx%INu;P5toQHZAV+j^Vb$m3j;K*J!l2`
zXBXECB};^jAJ)g?u(a)wYCPH<h<<dP_g;xtVmNfJQ*&bsgWwGaXb#98+|4|ovobbwWS
zQ2D9ypYsaCFq_Sb^)AQ%c(a)O_8M;PpyU>jKj<oq3ht;gUP(7-m{r0(do)R9m1N$upC
zPH+8K?t{Wl+nD<A=&~Pzy=P%o1!j;F=lhqB`(`yf$_T`zK01lT=L?9BXDCOfGRN}a
zpaxL^fw-){?{Qm&5_zY?YCfp^d^$$|Ux6|}|7DKlUC*k9hXv-96K9{P$5OAI(a)3(XP
kS>~wf1Ks}EI{I55RDQDm^p7(8e?t2pW>wHWNSvPf4R_|o;s5{u
diff --git a/dlls/light.msstyles/blue_trackbar_thumb_horizontal.svg b/dlls/light.msstyles/blue_trackbar_thumb_horizontal.svg
index d1063507dd0..4aa6c26b068 100644
--- a/dlls/light.msstyles/blue_trackbar_thumb_horizontal.svg
+++ b/dlls/light.msstyles/blue_trackbar_thumb_horizontal.svg
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
-<svg id="bitmap:6-32" width="6" height="95" version="1.1" viewBox="0 0 1.5875 25.135" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+<svg id="bitmap:11-24" width="11" height="105" version="1.1" viewBox="0 0 2.9104 27.781" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
- <dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
+ <rect y="-.00023066" width="2.9104" height="27.781" fill="#fdffff" stroke-linejoin="round" stroke-width=".070004"/>
<g stroke-width=".26458">
- <rect x=".39688" y=".13229" width=".79375" height="4.7625" rx=".52917" ry=".52917" fill="#fff" stroke="#aeaeae"/>
- <rect x=".39688" y="5.1594" width=".79375" height="4.7625" rx=".52917" ry=".52917" fill="#fff" stroke="#3096fa"/>
- <rect x=".39688" y="10.186" width=".79375" height="4.7625" rx=".52917" ry=".52917" fill="#2979ff" stroke="#2979ff"/>
- <rect x=".39688" y="15.214" width=".79375" height="4.7625" rx=".52917" ry=".52917" fill="#fff" stroke="#aeaeae"/>
- <rect x=".39688" y="20.241" width=".79375" height="4.7625" rx=".52917" ry=".52917" fill="#fff" stroke="#aeaeae"/>
+ <rect x=".13229" y=".13206" width="2.6458" height="5.2917" rx=".52917" ry=".52917" fill="#fff" stroke="#aeaeae"/>
+ <rect x=".13229" y="5.6883" width="2.6458" height="5.2917" rx=".52917" ry=".52917" fill="#fff" stroke="#3096fa"/>
+ <rect x=".13229" y="11.245" width="2.6458" height="5.2917" rx=".52917" ry=".52917" fill="#2979ff" stroke="#2979ff"/>
+ <rect x=".13229" y="16.801" width="2.6458" height="5.2917" rx=".52917" ry=".52917" fill="#fff" stroke="#aeaeae"/>
+ <rect x=".13229" y="22.357" width="2.6458" height="5.2917" rx=".52917" ry=".52917" fill="#fff" stroke="#aeaeae"/>
</g>
</svg>
diff --git a/dlls/light.msstyles/blue_trackbar_thumb_vertical.bmp b/dlls/light.msstyles/blue_trackbar_thumb_vertical.bmp
index b5c9d0f78a528afc15f2073d17e0a8fce6e1884a..32315aa00da3ac5ece65c2c7aa140f85b892cca5 100644
GIT binary patch
literal 3658
zcmeHKy-LGS82toS-2`7j?cfsKyA%W$L0TW6)!oU)Cvb0!QhbCG;|qxCXq}VQ)YX8c
zgNe7FCrznsK*E;}BF*Lg<c4#;bGhFkxwm|HuukK0h5iz418pB|g*MR>J+6(1RL4X~
zjo)**a&(>oWKLI8h~aS1?K+labtDCNu)rk(a)uInnLSW<uo3tU1ZDLD}W3tYmgCBk!9
zaF?FH=>9v-ljnKT6#nEN9zqDLLSnxT(a)Du+P{#|bW|9Ag#;ImQVW{EGh1Qqz}6At>s
zMwRs)0dpz?mQf?I@|2GUy+nDGXF?QwY364(54j_59dmO#PZr|*SBc+W;}E*gf55|d
zfls54eq^79rWP8zf@*5f!`W!?Mv>i6y*8_G?$4Y#QK5Rig)l)`OirSIeTFxCgf(Z1
z{RRNH;4iZOrbf|yUA^3iQ;7Wc+VBqi=SOxukN(a)ljyi3LTp*TMXFE7dGU~>QX>+|n7
Di7IQU
literal 4758
zcmeHJKTpC?5U<hE$;7qo*y(a)5|aFT(=$;GeYAgG_f*+7W)3y>6s_A~UK#u+{dv3)P+
zUEu}7guT}$L(a)pdx+TO44?tVY|x_5&!qqJB2enCG+zeYbYY~vW?>FPQjZWtKG@<ZpK
zdwc(|adD@^lb!D3-Q(a)ee6^3CloleDMGJ&d2`9ToG<MG(Un9k>Oi3S{_{Ml?);u1a=
zPpyS;RK4n)j;MO41507lg;_&Ci#q0B2S0g=X)c>;Crv4?DlYsrQa<8Dq)pN~X^N|*
znzdO_jXF*BY#%Ud&?e14)A^sgdS}?Ac^&*DJmPzE>f${Ko?Q!iZVWv~K;MPRzRZu{
z(a)zO+$1f7SsUW?GOzBS&m#;1#-a;@7~`}mtX(a)9mmPJST&`BQ^Dv_>&+nZH%cVekR0s
zo?@EIUc6md`9~+thi#D$T2R?3-|Iw+QQOSDn?!!S3y?YQ6(a)vNlb0pOI*m!C+;s>za
zf@;-is&{*ViSyFjPnv%wzdgyurMV-2h)0WI%f^`M;V0rD-<wkx?@5O}tv)3k_O$<Z
GPx}k^i?<a3
diff --git a/dlls/light.msstyles/blue_trackbar_thumb_vertical.svg b/dlls/light.msstyles/blue_trackbar_thumb_vertical.svg
index 0ea443d89ef..f15c9fd1baa 100644
--- a/dlls/light.msstyles/blue_trackbar_thumb_vertical.svg
+++ b/dlls/light.msstyles/blue_trackbar_thumb_vertical.svg
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
-<svg id="bitmap:21-32" width="21" height="55" version="1.1" viewBox="0 0 5.5562 14.552" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+<svg id="bitmap:21-24" width="21" height="55" version="1.1" viewBox="0 0 5.5562 14.552" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
- <dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
+ <rect x="-9.0909e-6" y="2.2204e-16" width="5.5562" height="14.552" fill="#fdffff" stroke-linejoin="round" stroke-width=".070003"/>
<g stroke-width=".26458">
- <rect x=".13229" y=".39688" width="5.2917" height="2.1167" rx=".52917" ry=".52917" fill="#fff" stroke="#aeaeae"/>
- <rect x=".13229" y="3.3073" width="5.2917" height="2.1167" rx=".52917" ry=".52917" fill="#fff" stroke="#3096fa"/>
- <rect x=".13229" y="6.2177" width="5.2917" height="2.1167" rx=".52917" ry=".52917" fill="#2979ff" stroke="#2979ff"/>
- <rect x=".13229" y="9.1281" width="5.2917" height="2.1167" rx=".52917" ry=".52917" fill="#fff" stroke="#aeaeae"/>
- <rect x=".13229" y="12.039" width="5.2917" height="2.1167" rx=".52917" ry=".52917" fill="#fff" stroke="#aeaeae"/>
+ <rect x=".13229" y=".13229" width="5.2916" height="2.6458" rx=".52916" ry=".52916" fill="#fff" stroke="#aeaeae"/>
+ <rect x=".13229" y="3.0427" width="5.2917" height="2.6458" rx=".52917" ry=".52916" fill="#fff" stroke="#3096fa"/>
+ <rect x=".13229" y="5.9531" width="5.2917" height="2.6458" rx=".52917" ry=".52916" fill="#2979ff" stroke="#2979ff"/>
+ <rect x=".13229" y="8.8635" width="5.2917" height="2.6458" rx=".52917" ry=".52916" fill="#fff" stroke="#aeaeae"/>
+ <rect x=".13229" y="11.774" width="5.2917" height="2.6458" rx=".52917" ry=".52916" fill="#fff" stroke="#aeaeae"/>
</g>
</svg>
diff --git a/dlls/light.msstyles/light.rc b/dlls/light.msstyles/light.rc
index 4b196716171..4596f0f0458 100644
--- a/dlls/light.msstyles/light.rc
+++ b/dlls/light.msstyles/light.rc
@@ -1091,13 +1091,13 @@ BLUE_INI TEXTFILE
"ImageFile = blue_trackbar_thumb_horizontal.bmp\r\n"
"ImageCount = 5\r\n"
"ImageLayout = Vertical\r\n"
-"SizingMargins = 2, 3, 2, 3\r\n"
+"SizingMargins = 1, 1, 1, 1\r\n"
"SizingType = Tile\r\n"
"[TrackBar.ThumbVert]\r\n"
"BgType = ImageFile\r\n"
"ImageFile = blue_trackbar_thumb_vertical.bmp\r\n"
-"SizingMargins = 2, 3, 2, 3\r\n"
+"SizingMargins = 1, 1, 1, 1\r\n"
"SizingType = Stretch\r\n"
"ImageCount = 5\r\n"
"ImageLayout = Vertical\r\n"
--
2.32.0
1
0
11 Feb '22
Signed-off-by: Zhiyi Zhang <zzhang(a)codeweavers.com>
---
dlls/light.msstyles/blue_tab_pane_edge.bmp | Bin 9354 -> 7050 bytes
dlls/light.msstyles/blue_tab_pane_edge.svg | 7 +++----
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/dlls/light.msstyles/blue_tab_pane_edge.bmp b/dlls/light.msstyles/blue_tab_pane_edge.bmp
index 0ee90aca9c540376d512f607da8aefd74ec87961..0fe3e1cd2eb65b65927a39eaac72bbf5c21a1187 100644
GIT binary patch
literal 7050
zcmeI1u?@m76hw{05J)V+3~8unScR4eG7L&qaE6Enh&+WYbHquJ6bId>xUcv}_C?C+
z`MTfS+OwOhMSo&lmUVEa`P?mf-K(a)PhSD(*8X|DIjs{Hys?mmn$dhffgdzlst48s63
z=;Ju%oQr9}0BpbvjG3FMBvML!-{Y1{!EAnBBeOX&-N+BeFFxYK32;^U5g$%~tICh~
zZ~|Oae#D0p;HvT?KAZqol^^lp1h}gFhz}>gRpm!~I03FIKjOm)a8>#F%IDwa1sGw3
c5X?syFaR4cGfh*Ss?;o5bzBq1UYIw%0jZ}x;Q#;t
literal 9354
zcmeI2El<Nx6oxMW0TMd_3&CMXu&8Cp)C>t0iA5kV2qc+9Vv$YSiq_2_2w%UT{VlAy
zdtd0AnUUZQH#s+ZcA9?N^Y&?{c1P3MVfY?1eBXlOo{caJn>^AV=jLj}5Pm+~6-Se^
z>(#NpZEdYNEylP5cEJD~fFp1MPQe&V!3DSkSKtQRfqU=(9>EjHKm}fY;Tikq{W(0B
z*YH}-!MQjm=VlM~I|uB|49vnz%*Kq&x}E3wepOX(WmztYqKGNLtjPSDW!YX`*Y8c!
zEV{14?W8f7m6_!|rR*}y%y<r8d|y%>de=R_jRE&><6T|dzf9Ov_iy7}UERM-*i`p#
z<6T|dzf9Ov_iy7}UERM-*i`p#<6T|dzf9Ov_iy7}UERM-*i`p#<6T|dzf9Ov_iy7}
zUERM-*i`p#<6T|dzf9Ov_iy7}UFn}|2@?MQoofg_+qT6mq__ToYd7G3h<o_pbI|YM
MzgK2ucCMXS0_lekzyJUM
diff --git a/dlls/light.msstyles/blue_tab_pane_edge.svg b/dlls/light.msstyles/blue_tab_pane_edge.svg
index 73f3fc2d2c7..2a950c9087d 100644
--- a/dlls/light.msstyles/blue_tab_pane_edge.svg
+++ b/dlls/light.msstyles/blue_tab_pane_edge.svg
@@ -1,16 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
-<svg id="bitmap:48-32" width="48" height="48" version="1.1" viewBox="0 0 12.7 12.7" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+<svg id="bitmap:48-24" width="48" height="48" version="1.1" viewBox="0 0 12.7 12.7" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
- <dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
<g fill="#fff">
- <rect x=".13229" y=".13229" width="12.435" height="12.171" rx=".52917" ry=".52917" stroke="#aeaeae" stroke-width=".26458"/>
- <rect transform="matrix(1 0 .99934 .036434 0 0)" x="-341.09" y="341.31" width="5.4429" height="7.262"/>
+ <rect y="-2.2204e-16" width="12.7" height="12.7" rx=".52919" ry=".54067" stroke-linejoin="round" stroke-width=".26458"/>
+ <rect x=".13229" y=".13229" width="12.435" height="12.435" rx=".52919" ry=".54067" stroke="#aeaeae" stroke-width=".26458"/>
</g>
</svg>
--
2.32.0
1
0
11 Feb '22
Signed-off-by: Zhiyi Zhang <zzhang(a)codeweavers.com>
---
dlls/light.msstyles/blue_combobutton.bmp | Bin 6858 -> 5178 bytes
dlls/light.msstyles/blue_combobutton.svg | 6 +++---
dlls/light.msstyles/light.rc | 1 -
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/dlls/light.msstyles/blue_combobutton.bmp b/dlls/light.msstyles/blue_combobutton.bmp
index a2b12ba3e1f3c3506f30c0dd75e567612a6e526c..77ddc24e2964ebff7ed90f5b14b9f1b1e7094ebf 100644
GIT binary patch
literal 5178
zcmeH~J5Iwu6h)214xnHQe2O$sP|{G*Aif(&pr#_Q0(#6xh$SFnmXMT$I_ddzAO)qs
z#u;uh(bdBe^M*ts1s*xhao#-{`$;oOR(a)RoMgZ?<d`53R><py38!3(a)qp5KZ;pawii6
z_UL_XR#w*!asl;nGM6x;jZUXiuh*j}y73r(a)Aq>UN32ru<S(f?S0%8b5v0;3br)cvC
zL$QoI^_fv-s1Rh;%~S~PysT0o$f}#E5ZrlLr9zNZH&Y?F^Rh~XAggYsLU8A0l?p*t
z-Askx&dVwlf~>lk3c;P1RVt&bqgt)jYPCF<VQ&3m6M&A{aVP3POzs=<LH?BAo=mu7
zste|DRzDCs+cj^`gF6hj&C$GW(a)tYCGTy}WQNEdLlFmUCE{%mFcyi69Z?1r0*Ub*`t
ztE2a7h;;<Tj?+z3o%`kb-5$8FkLGl%w<P7`{KSZ1ufSF_*3oT0r}18LzL<n1{WxDt
z(a)AkXzFZPzxxRN!lOqO^(L6&6qmzc|jF{7_&h0l-VVrk%pC9fGp2#;2{q8~0SdgbcQ
z_uBY-HN-lC(jVz<IeWPFU4~e{jVmm9>vr2uX<Yurz7bcj)qHQ>UtbmfVbzY~C%VlL
zRD}U51eR2wLQoY3s1R6EfeJxY7@$I6Nd+ndRbhY%fh85F5LAT$Dg>5Pph8d;2B`e2
G|FB<8h73{w
literal 6858
zcmeI1&raJw5XN1B$_sGf(B#lVLJm0M1rV2>dO>}Y9_svgf*vdCh*yY|<Q9n}TxrS+
zrA|Q03}&29-pkA;m2$AfFrRn7`DMMa2H9MHeL9QYj-T|qPjO1|jp9R8kB%r`z0Z?`
z!$nd4!(;CH%guL~RLNtNYd6zqG^&lq;~7Op;f%pG_ru}vldNJgnaqjVrLm7Prp;VK
z^?hQ_q=s}B!jk&wbb3OJe{xQmzLnh$WS|bEA_H~B)9nE68ERd%??MJ(a)->Dlx25Mck
z??MJ(a)->Dlx25Mck??MJ(a)->Dlx25Mck??MLYee{=1K81J->S3Lbp2am(-=iq{-+O;v
z(a)H#2X{h9kQaf|*e>pax#dd-?kntxo<cy^tpGeutW=zg?{>!tc7g`Kti>}Ot&>{rmb
zwygYmy62mMSDp(zuXx6LrL(a)o0{#E;D={5iDehKM&rF)rs)OLN1C)a7bSgx()<=(k0
zcuAv9=YNCxV18{&?(xDq^t`%l*Vez|**c9g3TKQgOXK_1-DUCji0bE?H14`#%lv%A
zHJkLJ&+CzW<8_6wq~87dd_s)k`G~Ji=0Y<vP**(N4&a`l)>Zp1WT5t)x)Efc)>Zp1
zWT5t)x)Efc)>Zp1WT5t)x)Efc)>Zp1WT5t)x)EfM-ba5ao{!dP`(ZO^Cm}s6?|*TZ
z)-;zZSq<X)dT_Deb(a)IB6!8LR4(a)xnXwT)nTee?$D-ELEsw%$kvb+R70>GEmFBH6sJH
zl_P#+pq6=SMh0ptNBqb(a)E%Vll4AfSR_>qBH=B*hSsI46FBLlU}TQf3HTRGxK2I+mj
guX`Y768gT5|JT9q*krAw>%`mXeI56B;q5cO0viV(a)SpWb4
diff --git a/dlls/light.msstyles/blue_combobutton.svg b/dlls/light.msstyles/blue_combobutton.svg
index aab7ff06812..07293de0ba8 100644
--- a/dlls/light.msstyles/blue_combobutton.svg
+++ b/dlls/light.msstyles/blue_combobutton.svg
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
-<svg id="bitmap:20-32" width="20" height="84" version="1.1" viewBox="0 0 5.2917 22.225" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+<svg id="bitmap:20-24" width="20" height="84" version="1.1" viewBox="0 0 5.2917 22.225" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
- <dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
- <g stroke-width=".26458">
+ <rect y="-7e-5" width="5.2917" height="22.225" fill="#fff" stroke-width=".26458"/>
+ <g transform="translate(5.0184e-6 -6.4982e-5)" stroke-width=".26458">
<rect x=".39687" y=".39687" width="4.4979" height="4.7625" rx=".52917" ry=".52917" fill="none" stroke="#aeaeae"/>
<rect x=".39687" y="5.9531" width="4.4979" height="4.7625" rx=".52917" ry=".52917" fill="none" stroke="#3096fa"/>
<rect x=".39687" y="11.509" width="4.4979" height="4.7625" rx=".52917" ry=".52917" fill="#2979ff" stroke="#2979ff"/>
diff --git a/dlls/light.msstyles/light.rc b/dlls/light.msstyles/light.rc
index a8e35f9c5d7..4b196716171 100644
--- a/dlls/light.msstyles/light.rc
+++ b/dlls/light.msstyles/light.rc
@@ -398,7 +398,6 @@ BLUE_INI TEXTFILE
"GlyphType = ImageGlyph\r\n"
"GlyphImageFile = blue_combobutton_glyph.bmp\r\n"
"GlyphTransparent = True\r\n"
-"Transparent = True\r\n"
"TransitionDurations = 4, "
"0, 100, 100, 100, "
"100, 0, 100, 100, "
--
2.32.0
1
0