mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 21:20:25 +00:00
comctl32: Don't use sizeof in traces to avoid printf format warnings.
This commit is contained in:
parent
553bb2591f
commit
03e2b335c4
@ -1248,6 +1248,7 @@ static UINT GetTemplateSize(DLGTEMPLATE* pTemplate)
|
||||
const WORD* p = (const WORD *)pTemplate;
|
||||
BOOL istemplateex = (((MyDLGTEMPLATEEX*)pTemplate)->signature == 0xFFFF);
|
||||
WORD nrofitems;
|
||||
UINT ret;
|
||||
|
||||
if (istemplateex)
|
||||
{
|
||||
@ -1363,9 +1364,9 @@ static UINT GetTemplateSize(DLGTEMPLATE* pTemplate)
|
||||
--nrofitems;
|
||||
}
|
||||
|
||||
TRACE("%p %p size 0x%08x\n",p, (WORD*)pTemplate,sizeof(WORD)*(p - (WORD*)pTemplate));
|
||||
return (p - (WORD*)pTemplate)*sizeof(WORD);
|
||||
|
||||
ret = (p - (WORD*)pTemplate) * sizeof(WORD);
|
||||
TRACE("%p %p size 0x%08x\n", p, pTemplate, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
|
@ -100,7 +100,7 @@ static void check_reg_entries(const char *mrulist, const char**items)
|
||||
char buff[128];
|
||||
HKEY hKey = NULL;
|
||||
DWORD type, size, ret;
|
||||
size_t i;
|
||||
unsigned int i;
|
||||
|
||||
ok(!RegOpenKeyA(HKEY_CURRENT_USER, REG_TEST_FULLKEY, &hKey),
|
||||
"Couldn't open test key \"%s\"\n", REG_TEST_FULLKEY);
|
||||
|
Loading…
Reference in New Issue
Block a user