mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
[SHELL32] - Remove a not needed hack
svn path=/trunk/; revision=54404
This commit is contained in:
parent
602b5f5ddd
commit
c09009c2be
|
@ -1377,11 +1377,6 @@ HINSTANCE shell32_hInstance;
|
|||
HIMAGELIST ShellSmallIconList = 0;
|
||||
HIMAGELIST ShellBigIconList = 0;
|
||||
|
||||
void *operator new (size_t, void *buf)
|
||||
{
|
||||
return buf;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* SHELL32 DllMain
|
||||
*
|
||||
|
@ -1393,12 +1388,6 @@ STDAPI_(BOOL) DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID fImpLoad)
|
|||
TRACE("%p 0x%x %p\n", hInstance, dwReason, fImpLoad);
|
||||
if (dwReason == DLL_PROCESS_ATTACH)
|
||||
{
|
||||
/* HACK - the global constructors don't run, so I placement new them here */
|
||||
new (&gModule) CShell32Module;
|
||||
new (&_AtlWinModule) CAtlWinModule;
|
||||
new (&_AtlBaseModule) CAtlBaseModule;
|
||||
new (&_AtlComModule) CAtlComModule;
|
||||
|
||||
shell32_hInstance = hInstance;
|
||||
gModule.Init(ObjectMap, hInstance, NULL);
|
||||
|
||||
|
@ -1448,7 +1437,7 @@ STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
|
|||
}
|
||||
|
||||
/***********************************************************************
|
||||
* DllRegisterServer (BROWSEUI.@)
|
||||
* DllRegisterServer (SHELL32.@)
|
||||
*/
|
||||
STDAPI DllRegisterServer()
|
||||
{
|
||||
|
@ -1463,7 +1452,7 @@ STDAPI DllRegisterServer()
|
|||
}
|
||||
|
||||
/***********************************************************************
|
||||
* DllUnregisterServer (BROWSEUI.@)
|
||||
* DllUnregisterServer (SHELL32.@)
|
||||
*/
|
||||
STDAPI DllUnregisterServer()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue