Alexandre Julliard : atl: Fix formatting of generated class name for 64-bit .

Alexandre Julliard julliard at winehq.org
Tue May 25 12:06:11 CDT 2010


Module: wine
Branch: master
Commit: 4e00948efcc46e5ebb26b3fe181cd27fecf80f4a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4e00948efcc46e5ebb26b3fe181cd27fecf80f4a

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue May 25 17:03:35 2010 +0200

atl: Fix formatting of generated class name for 64-bit.

---

 dlls/atl/atl_main.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/dlls/atl/atl_main.c b/dlls/atl/atl_main.c
index 788e4de..f168d54 100644
--- a/dlls/atl/atl_main.c
+++ b/dlls/atl/atl_main.c
@@ -458,8 +458,7 @@ ATOM WINAPI AtlModuleRegisterWndClassInfoA(_ATL_MODULEA *pm, _ATL_WNDCLASSINFOA
 
         if (!wci->m_wc.lpszClassName)
         {
-            static const CHAR szFormat[] = "ATL%08x";
-            sprintf(wci->m_szAutoName, szFormat, (UINT)(UINT_PTR)wci);
+            sprintf(wci->m_szAutoName, "ATL%08lx", (UINT_PTR)wci);
             TRACE("auto-generated class name %s\n", wci->m_szAutoName);
             wci->m_wc.lpszClassName = wci->m_szAutoName;
         }
@@ -510,8 +509,8 @@ ATOM WINAPI AtlModuleRegisterWndClassInfoW(_ATL_MODULEW *pm, _ATL_WNDCLASSINFOW
 
         if (!wci->m_wc.lpszClassName)
         {
-            static const WCHAR szFormat[] = {'A','T','L','%','0','8','x',0};
-            sprintfW(wci->m_szAutoName, szFormat, (UINT)(UINT_PTR)wci);
+            static const WCHAR szFormat[] = {'A','T','L','%','0','8','l','x',0};
+            sprintfW(wci->m_szAutoName, szFormat, (UINT_PTR)wci);
             TRACE("auto-generated class name %s\n", debugstr_w(wci->m_szAutoName));
             wci->m_wc.lpszClassName = wci->m_szAutoName;
         }




More information about the wine-cvs mailing list