mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[ADVAPI32_VISTA] Dll init
This commit is contained in:
parent
8dfdecdbb7
commit
4a2215f229
1 changed files with 11 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
|||
|
||||
#include "advapi32_vista.h"
|
||||
|
||||
BOOL
|
||||
RegInitialize(VOID);
|
||||
|
||||
BOOL
|
||||
WINAPI
|
||||
DllMain(HANDLE hDll,
|
||||
|
@ -9,6 +12,14 @@ DllMain(HANDLE hDll,
|
|||
{
|
||||
/* For now, there isn't much to do */
|
||||
if (dwReason == DLL_PROCESS_ATTACH)
|
||||
{
|
||||
DisableThreadLibraryCalls(hDll);
|
||||
|
||||
if (!RegInitialize())
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue