#include "precomp.h"
-WINE_DEFAULT_DEBUG_CHANNEL(browseui);
-
class CBrowseUIModule : public CComModule
{
public:
{
TRACE("%p 0x%x %p\n", hInstance, dwReason, fImpLoad);
- /* HACK - the global constructors don't run, so I placement new them here */
- new (&gModule) CBrowseUIModule;
- new (&gWinModule) CAtlWinModule;
- new (&_AtlBaseModule) CAtlBaseModule;
- new (&_AtlComModule) CAtlComModule;
-
if (dwReason == DLL_PROCESS_ATTACH)
{
+ /* HACK - the global constructors don't run, so I placement new them here */
+ new (&gModule) CBrowseUIModule;
+ new (&gWinModule) CAtlWinModule;
+ new (&_AtlBaseModule) CAtlBaseModule;
+ new (&_AtlComModule) CAtlComModule;
+
gModule.Init(ObjectMap, hInstance, NULL);
DisableThreadLibraryCalls (hInstance);
}
/***********************************************************************
* DllGetVersion (BROWSEUI.@)
*/
-HRESULT WINAPI DllGetVersion(DLLVERSIONINFO *info)
+STDAPI DllGetVersion(DLLVERSIONINFO *info)
{
if (info->cbSize != sizeof(DLLVERSIONINFO)) FIXME("support DLLVERSIONINFO2\n");