mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 21:03:39 +00:00
uxtheme: Win64 printf format warning fixes.
This commit is contained in:
parent
d3e324f878
commit
dc3706ae50
|
@ -6,7 +6,6 @@ MODULE = uxtheme.dll
|
|||
IMPORTLIB = libuxtheme.$(IMPLIBEXT)
|
||||
IMPORTS = user32 gdi32 advapi32 kernel32 ntdll
|
||||
DELAYIMPORTS = msimg32
|
||||
EXTRADEFS = -DWINE_NO_LONG_AS_INT
|
||||
|
||||
C_SRCS = \
|
||||
draw.c \
|
||||
|
|
|
@ -53,7 +53,7 @@ HRESULT WINAPI EnableThemeDialogTexture(HWND hwnd, DWORD dwFlags)
|
|||
static const WCHAR szTab[] = { 'T','a','b',0 };
|
||||
HRESULT hr;
|
||||
|
||||
TRACE("(%p,0x%08lx\n", hwnd, dwFlags);
|
||||
TRACE("(%p,0x%08x\n", hwnd, dwFlags);
|
||||
hr = SetPropW (hwnd, MAKEINTATOMW (atDialogThemeEnabled),
|
||||
(HANDLE)(dwFlags|0x80000000));
|
||||
/* 0x80000000 serves as a "flags set" flag */
|
||||
|
@ -220,7 +220,7 @@ static PTHEME_PROPERTY UXTHEME_SelectImage(HTHEME hTheme, HDC hdc, int iPartId,
|
|||
}
|
||||
}
|
||||
if(reqsize.x <= size.x && reqsize.y <= size.y) {
|
||||
TRACE("Using image size %ldx%ld, image %d\n", reqsize.x, reqsize.y, i + TMT_IMAGEFILE1);
|
||||
TRACE("Using image size %dx%d, image %d\n", reqsize.x, reqsize.y, i + TMT_IMAGEFILE1);
|
||||
return fileProp;
|
||||
}
|
||||
}
|
||||
|
@ -831,7 +831,7 @@ static HRESULT UXTHEME_DrawBackgroundFill(HTHEME hTheme, HDC hdc, int iPartId,
|
|||
HRESULT hr = S_OK;
|
||||
int filltype = FT_SOLID;
|
||||
|
||||
TRACE("(%d,%d,%ld)\n", iPartId, iStateId, pOptions->dwFlags);
|
||||
TRACE("(%d,%d,%d)\n", iPartId, iStateId, pOptions->dwFlags);
|
||||
|
||||
if(pOptions->dwFlags & DTBG_OMITCONTENT)
|
||||
return S_OK;
|
||||
|
@ -929,7 +929,7 @@ HRESULT WINAPI DrawThemeBackgroundEx(HTHEME hTheme, HDC hdc, int iPartId,
|
|||
int bgtype = BT_BORDERFILL;
|
||||
RECT rt;
|
||||
|
||||
TRACE("(%p,%p,%d,%d,%ld,%ld)\n", hTheme, hdc, iPartId, iStateId,pRect->left,pRect->top);
|
||||
TRACE("(%p,%p,%d,%d,%d,%d)\n", hTheme, hdc, iPartId, iStateId,pRect->left,pRect->top);
|
||||
if(!hTheme)
|
||||
return E_HANDLE;
|
||||
|
||||
|
@ -1627,7 +1627,7 @@ HRESULT WINAPI GetThemeBackgroundContentRect(HTHEME hTheme, HDC hdc, int iPartId
|
|||
/* If nothing was found, leave unchanged */
|
||||
}
|
||||
|
||||
TRACE("left:%ld,top:%ld,right:%ld,bottom:%ld\n", pContentRect->left, pContentRect->top, pContentRect->right, pContentRect->bottom);
|
||||
TRACE("left:%d,top:%d,right:%d,bottom:%d\n", pContentRect->left, pContentRect->top, pContentRect->right, pContentRect->bottom);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
@ -1675,7 +1675,7 @@ HRESULT WINAPI GetThemeBackgroundExtent(HTHEME hTheme, HDC hdc, int iPartId,
|
|||
/* If nothing was found, leave unchanged */
|
||||
}
|
||||
|
||||
TRACE("left:%ld,top:%ld,right:%ld,bottom:%ld\n", pExtentRect->left, pExtentRect->top, pExtentRect->right, pExtentRect->bottom);
|
||||
TRACE("left:%d,top:%d,right:%d,bottom:%d\n", pExtentRect->left, pExtentRect->top, pExtentRect->right, pExtentRect->bottom);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(uxtheme);
|
|||
/* For the moment, do nothing here. */
|
||||
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
|
||||
{
|
||||
TRACE("%p 0x%lx %p: stub\n", hInstDLL, fdwReason, lpv);
|
||||
TRACE("%p 0x%x %p: stub\n", hInstDLL, fdwReason, lpv);
|
||||
switch(fdwReason) {
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls(hInstDLL);
|
||||
|
|
|
@ -115,7 +115,7 @@ HRESULT MSSTYLES_OpenThemeFile(LPCWSTR lpThemeFile, LPCWSTR pszColorName, LPCWST
|
|||
}
|
||||
if((versize = SizeofResource(hTheme, hrsc)) != 2)
|
||||
{
|
||||
TRACE("Version resource found, but wrong size: %ld\n", versize);
|
||||
TRACE("Version resource found, but wrong size: %d\n", versize);
|
||||
hr = HRESULT_FROM_WIN32(ERROR_BAD_FORMAT);
|
||||
goto invalid_theme;
|
||||
}
|
||||
|
|
|
@ -165,7 +165,7 @@ static void UXTHEME_LoadTheme(void)
|
|||
}
|
||||
else {
|
||||
bThemeActive = FALSE;
|
||||
TRACE("Failed to get ThemeActive: %ld\n", GetLastError());
|
||||
TRACE("Failed to get ThemeActive: %d\n", GetLastError());
|
||||
}
|
||||
buffsize = sizeof(szCurrentColor)/sizeof(szCurrentColor[0]);
|
||||
if(RegQueryValueExW(hKey, szColorName, NULL, NULL, (LPBYTE)szCurrentColor, &buffsize))
|
||||
|
@ -725,7 +725,7 @@ DWORD WINAPI GetThemeAppProperties(void)
|
|||
*/
|
||||
void WINAPI SetThemeAppProperties(DWORD dwFlags)
|
||||
{
|
||||
TRACE("(0x%08lx)\n", dwFlags);
|
||||
TRACE("(0x%08x)\n", dwFlags);
|
||||
dwThemeAppProperties = dwFlags;
|
||||
}
|
||||
|
||||
|
@ -748,7 +748,7 @@ HRESULT WINAPI HitTestThemeBackground(HTHEME hTheme, HDC hdc, int iPartId,
|
|||
const RECT *pRect, HRGN hrgn,
|
||||
POINT ptTest, WORD *pwHitTestCode)
|
||||
{
|
||||
FIXME("%d %d 0x%08lx: stub\n", iPartId, iStateId, dwOptions);
|
||||
FIXME("%d %d 0x%08x: stub\n", iPartId, iStateId, dwOptions);
|
||||
if(!hTheme)
|
||||
return E_HANDLE;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
|
@ -867,7 +867,7 @@ HRESULT WINAPI OpenThemeFile(LPCWSTR pszThemeFileName, LPCWSTR pszColorName,
|
|||
LPCWSTR pszSizeName, HTHEMEFILE *hThemeFile,
|
||||
DWORD unknown)
|
||||
{
|
||||
TRACE("(%s,%s,%s,%p,%ld)\n", debugstr_w(pszThemeFileName),
|
||||
TRACE("(%s,%s,%s,%p,%d)\n", debugstr_w(pszThemeFileName),
|
||||
debugstr_w(pszColorName), debugstr_w(pszSizeName),
|
||||
hThemeFile, unknown);
|
||||
return MSSTYLES_OpenThemeFile(pszThemeFileName, pszColorName, pszSizeName, (PTHEME_FILE*)hThemeFile);
|
||||
|
@ -947,7 +947,7 @@ HRESULT WINAPI GetThemeDefaults(LPCWSTR pszThemeFileName, LPWSTR pszColorName,
|
|||
{
|
||||
PTHEME_FILE pt;
|
||||
HRESULT hr;
|
||||
TRACE("(%s,%p,%ld,%p,%ld)\n", debugstr_w(pszThemeFileName),
|
||||
TRACE("(%s,%p,%d,%p,%d)\n", debugstr_w(pszThemeFileName),
|
||||
pszColorName, dwColorNameLen,
|
||||
pszSizeName, dwSizeNameLen);
|
||||
|
||||
|
@ -1066,7 +1066,7 @@ HRESULT WINAPI EnumThemeColors(LPWSTR pszThemeFileName, LPWSTR pszSizeName,
|
|||
HRESULT hr;
|
||||
LPWSTR tmp;
|
||||
UINT resourceId = dwColorNum + 1000;
|
||||
TRACE("(%s,%s,%ld)\n", debugstr_w(pszThemeFileName),
|
||||
TRACE("(%s,%s,%d)\n", debugstr_w(pszThemeFileName),
|
||||
debugstr_w(pszSizeName), dwColorNum);
|
||||
|
||||
hr = MSSTYLES_OpenThemeFile(pszThemeFileName, NULL, pszSizeName, &pt);
|
||||
|
@ -1126,7 +1126,7 @@ HRESULT WINAPI EnumThemeSizes(LPWSTR pszThemeFileName, LPWSTR pszColorName,
|
|||
HRESULT hr;
|
||||
LPWSTR tmp;
|
||||
UINT resourceId = dwSizeNum + 3000;
|
||||
TRACE("(%s,%s,%ld)\n", debugstr_w(pszThemeFileName),
|
||||
TRACE("(%s,%s,%d)\n", debugstr_w(pszThemeFileName),
|
||||
debugstr_w(pszColorName), dwSizeNum);
|
||||
|
||||
hr = MSSTYLES_OpenThemeFile(pszThemeFileName, pszColorName, NULL, &pt);
|
||||
|
|
Loading…
Reference in a new issue