mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 06:01:17 +00:00
atl: Fix a MSVC x64 printf warning.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c58e3a5e29
commit
eecaf487af
|
@ -313,7 +313,7 @@ ATOM WINAPI AtlModuleRegisterWndClassInfoA(_ATL_MODULEA *pm, _ATL_WNDCLASSINFOA
|
||||||
|
|
||||||
if (!wci->m_wc.lpszClassName)
|
if (!wci->m_wc.lpszClassName)
|
||||||
{
|
{
|
||||||
sprintf(wci->m_szAutoName, "ATL%08lx", (UINT_PTR)wci);
|
sprintf(wci->m_szAutoName, "ATL%08x", PtrToUint(wci));
|
||||||
TRACE("auto-generated class name %s\n", wci->m_szAutoName);
|
TRACE("auto-generated class name %s\n", wci->m_szAutoName);
|
||||||
wci->m_wc.lpszClassName = wci->m_szAutoName;
|
wci->m_wc.lpszClassName = wci->m_szAutoName;
|
||||||
}
|
}
|
||||||
|
@ -372,8 +372,8 @@ ATOM WINAPI AtlModuleRegisterWndClassInfoW(_ATL_MODULEW *pm, _ATL_WNDCLASSINFOW
|
||||||
|
|
||||||
if (!wci->m_wc.lpszClassName)
|
if (!wci->m_wc.lpszClassName)
|
||||||
{
|
{
|
||||||
static const WCHAR szFormat[] = {'A','T','L','%','0','8','l','x',0};
|
static const WCHAR szFormat[] = {'A','T','L','%','0','8','x',0};
|
||||||
swprintf(wci->m_szAutoName, ARRAY_SIZE(wci->m_szAutoName), szFormat, (UINT_PTR)wci);
|
swprintf(wci->m_szAutoName, ARRAY_SIZE(wci->m_szAutoName), szFormat, PtrToUint(wci));
|
||||||
TRACE("auto-generated class name %s\n", debugstr_w(wci->m_szAutoName));
|
TRACE("auto-generated class name %s\n", debugstr_w(wci->m_szAutoName));
|
||||||
wci->m_wc.lpszClassName = wci->m_szAutoName;
|
wci->m_wc.lpszClassName = wci->m_szAutoName;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue