Make VIRTUAL_HandleFault return an NTSTATUS.

This commit is contained in:
Dmitry Timoshkov 2005-07-15 11:43:09 +00:00 committed by Alexandre Julliard
parent 28f15a3bdf
commit 40dd77bf5a
2 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@ extern NTSTATUS FILE_GetNtStatus(void);
extern BOOL DIR_is_hidden_file( const UNICODE_STRING *name ); extern BOOL DIR_is_hidden_file( const UNICODE_STRING *name );
/* virtual memory */ /* virtual memory */
extern DWORD VIRTUAL_HandleFault(LPCVOID addr); extern NTSTATUS VIRTUAL_HandleFault(LPCVOID addr);
extern BOOL VIRTUAL_HasMapping( LPCVOID addr ); extern BOOL VIRTUAL_HasMapping( LPCVOID addr );
extern void VIRTUAL_UseLargeAddressSpace(void); extern void VIRTUAL_UseLargeAddressSpace(void);

View File

@ -1097,10 +1097,10 @@ void virtual_init(void)
/*********************************************************************** /***********************************************************************
* VIRTUAL_HandleFault * VIRTUAL_HandleFault
*/ */
DWORD VIRTUAL_HandleFault( LPCVOID addr ) NTSTATUS VIRTUAL_HandleFault( LPCVOID addr )
{ {
FILE_VIEW *view; FILE_VIEW *view;
DWORD ret = EXCEPTION_ACCESS_VIOLATION; NTSTATUS ret = STATUS_ACCESS_VIOLATION;
RtlEnterCriticalSection( &csVirtual ); RtlEnterCriticalSection( &csVirtual );
if ((view = VIRTUAL_FindView( addr ))) if ((view = VIRTUAL_FindView( addr )))