- 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:
Ged Murphy 2015-10-19 07:04:17 +00:00
parent b534e5472e
commit d41f9c44b4

View file

@ -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:
@ -828,3 +810,23 @@ 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;
}
}