mirror of
https://github.com/reactos/reactos.git
synced 2024-10-21 21:34:17 +00:00
janitory work
svn path=/trunk/; revision=13060
This commit is contained in:
parent
c0aceb10d9
commit
85ae2d98f2
|
@ -19,7 +19,7 @@ TARGET_BASE = $(TARGET_BASE_LIB_PSAPI)
|
||||||
|
|
||||||
TARGET_PCH = precomp.h
|
TARGET_PCH = precomp.h
|
||||||
|
|
||||||
TARGET_OBJECTS = misc/dllmain.o malloc.o win32.o
|
TARGET_OBJECTS = malloc.o psapi.o
|
||||||
|
|
||||||
DEP_OBJECTS = $(TARGET_OBJECTS)
|
DEP_OBJECTS = $(TARGET_OBJECTS)
|
||||||
|
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
/* $Id$
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* COPYRIGHT: None
|
|
||||||
* LICENSE: Public domain
|
|
||||||
* PROJECT: ReactOS system libraries
|
|
||||||
* FILE: reactos/lib/psapi/misc/malloc.c
|
|
||||||
* PURPOSE: PSAPI.DLL main procedure
|
|
||||||
* PROGRAMMER: KJK::Hyperion <noog@libero.it>
|
|
||||||
* UPDATE HISTORY:
|
|
||||||
* 28/11/2001: Created (Emanuele Aliberti <eal@users.sf.net>)
|
|
||||||
* 30/08/2002: Minimal tweak (KJK::Hyperion <noog@libero.it>)
|
|
||||||
*/
|
|
||||||
#include "precomp.h"
|
|
||||||
|
|
||||||
#define NDEBUG
|
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
BOOLEAN STDCALL DllMain
|
|
||||||
(
|
|
||||||
PVOID hinstDll,
|
|
||||||
ULONG dwReason,
|
|
||||||
PVOID reserved
|
|
||||||
)
|
|
||||||
{
|
|
||||||
if(dwReason == DLL_PROCESS_ATTACH)
|
|
||||||
/* don't bother calling the entry point on thread startup - PSAPI.DLL doesn't
|
|
||||||
store any per-thread data */
|
|
||||||
LdrDisableThreadCalloutsForDll(hinstDll);
|
|
||||||
|
|
||||||
return (TRUE);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* EOF */
|
|
|
@ -17,6 +17,22 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
BOOLEAN
|
||||||
|
WINAPI
|
||||||
|
DllMain(HINSTANCE hDllHandle,
|
||||||
|
DWORD nReason,
|
||||||
|
LPVOID Reserved)
|
||||||
|
{
|
||||||
|
switch(nReason)
|
||||||
|
{
|
||||||
|
case DLL_PROCESS_ATTACH:
|
||||||
|
DisableThreadLibraryCalls(hDllHandle);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
/* INTERNAL *******************************************************************/
|
/* INTERNAL *******************************************************************/
|
||||||
|
|
||||||
typedef struct _ENUM_DEVICE_DRIVERS_CONTEXT
|
typedef struct _ENUM_DEVICE_DRIVERS_CONTEXT
|
||||||
|
@ -935,7 +951,7 @@ InitializeProcessForWsWatch(HANDLE hProcess)
|
||||||
0);
|
0);
|
||||||
if(!NT_SUCCESS(Status))
|
if(!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
SetLastError(RtlNtStatusToDosError(Status));
|
SetLastErrorByStatus(Status);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -961,7 +977,7 @@ GetWsChanges(HANDLE hProcess,
|
||||||
NULL);
|
NULL);
|
||||||
if(!NT_SUCCESS(Status))
|
if(!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
SetLastError(RtlNtStatusToDosError(Status));
|
SetLastErrorByStatus(Status);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue