mirror of
https://github.com/reactos/reactos.git
synced 2025-05-31 15:08:14 +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;
|
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
|
class CDevMgrUIModule : public CComModule
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -828,3 +810,23 @@ STDAPI DllUnregisterServer()
|
||||||
{
|
{
|
||||||
return gModule.DllUnregisterServer(FALSE);
|
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