mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 05:58:13 +00:00
[DEVMGR]
- Explicitly state that we want to build DllMain without name mangling See issue 10347 for more details. svn path=/trunk/; revision=69612
This commit is contained in:
parent
b534e5472e
commit
d41f9c44b4
1 changed files with 20 additions and 18 deletions
|
@ -784,24 +784,6 @@ DeviceManagerPrintW(LPCWSTR lpMachineName,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
BOOL
|
||||
WINAPI
|
||||
DllMain(IN HINSTANCE hinstDLL,
|
||||
IN DWORD dwReason,
|
||||
IN LPVOID lpvReserved)
|
||||
{
|
||||
switch (dwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls(hinstDLL);
|
||||
hDllInstance = hinstDLL;
|
||||
break;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
class CDevMgrUIModule : public CComModule
|
||||
{
|
||||
public:
|
||||
|
@ -827,4 +809,24 @@ STDAPI DllRegisterServer()
|
|||
STDAPI DllUnregisterServer()
|
||||
{
|
||||
return gModule.DllUnregisterServer(FALSE);
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
||||
BOOL
|
||||
WINAPI
|
||||
DllMain(_In_ HINSTANCE hinstDLL,
|
||||
_In_ DWORD dwReason,
|
||||
_In_ LPVOID lpvReserved)
|
||||
{
|
||||
switch (dwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls(hinstDLL);
|
||||
hDllInstance = hinstDLL;
|
||||
break;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue