#include "wine/atlwin.h"
#include "wine/debug.h"
-#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(atl);
if (!wci->m_wc.lpszClassName)
{
- snprintf(wci->m_szAutoName, sizeof(wci->m_szAutoName), "ATL%08lx", (UINT_PTR)wci);
+#ifdef __REACTOS__
+ sprintf(wci->m_szAutoName, "ATL:%p", wci);
+#else
+ sprintf(wci->m_szAutoName, "ATL%08lx", (UINT_PTR)wci);
+#endif
TRACE("auto-generated class name %s\n", wci->m_szAutoName);
wci->m_wc.lpszClassName = wci->m_szAutoName;
}
if (!wci->m_wc.lpszClassName)
{
+#ifdef __REACTOS__
+ static const WCHAR szFormat[] = {'A','T','L',':','%','p',0};
+#else
static const WCHAR szFormat[] = {'A','T','L','%','0','8','l','x',0};
- snprintfW(wci->m_szAutoName, ARRAY_SIZE(wci->m_szAutoName), szFormat, (UINT_PTR)wci);
+#endif
+ swprintf(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;
}