mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
janitory work
svn path=/trunk/; revision=13060
This commit is contained in:
@@ -19,7 +19,7 @@ TARGET_BASE = $(TARGET_BASE_LIB_PSAPI)
|
||||
|
||||
TARGET_PCH = precomp.h
|
||||
|
||||
TARGET_OBJECTS = misc/dllmain.o malloc.o win32.o
|
||||
TARGET_OBJECTS = malloc.o psapi.o
|
||||
|
||||
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 <[email protected]>
|
||||
* UPDATE HISTORY:
|
||||
* 28/11/2001: Created (Emanuele Aliberti <[email protected]>)
|
||||
* 30/08/2002: Minimal tweak (KJK::Hyperion <[email protected]>)
|
||||
*/
|
||||
#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
|
||||
#include <debug.h>
|
||||
|
||||
BOOLEAN
|
||||
WINAPI
|
||||
DllMain(HINSTANCE hDllHandle,
|
||||
DWORD nReason,
|
||||
LPVOID Reserved)
|
||||
{
|
||||
switch(nReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls(hDllHandle);
|
||||
break;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* INTERNAL *******************************************************************/
|
||||
|
||||
typedef struct _ENUM_DEVICE_DRIVERS_CONTEXT
|
||||
@@ -935,7 +951,7 @@ InitializeProcessForWsWatch(HANDLE hProcess)
|
||||
0);
|
||||
if(!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastError(RtlNtStatusToDosError(Status));
|
||||
SetLastErrorByStatus(Status);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -961,7 +977,7 @@ GetWsChanges(HANDLE hProcess,
|
||||
NULL);
|
||||
if(!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastError(RtlNtStatusToDosError(Status));
|
||||
SetLastErrorByStatus(Status);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user