mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:56:00 +00:00
[WIN32K]
Fix indentation and the name of the programmer who dared to use GNU style indentation. svn path=/trunk/; revision=56341
This commit is contained in:
parent
ecea399f4b
commit
dee532ddce
1 changed files with 37 additions and 27 deletions
|
@ -1,9 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
* PURPOSE: Engine floating point functions
|
* PURPOSE: Engine floating point functions
|
||||||
* FILE: subsys/win32k/eng/float.c
|
* FILE: subsys/win32k/eng/float.c
|
||||||
* PROGRAMER: Jason Filby
|
* PROGRAMER: David Welch
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
@ -17,43 +17,53 @@
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
APIENTRY
|
APIENTRY
|
||||||
EngRestoreFloatingPointState ( IN VOID *Buffer )
|
EngRestoreFloatingPointState(
|
||||||
|
IN VOID *Buffer)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
Status = KeRestoreFloatingPointState((PKFLOATING_SAVE)Buffer);
|
|
||||||
if (!NT_SUCCESS(Status))
|
Status = KeRestoreFloatingPointState((PKFLOATING_SAVE)Buffer);
|
||||||
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
return TRUE;
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
ULONG
|
ULONG
|
||||||
APIENTRY
|
APIENTRY
|
||||||
EngSaveFloatingPointState(OUT VOID *Buffer,
|
EngSaveFloatingPointState(
|
||||||
IN ULONG BufferSize)
|
OUT VOID *Buffer,
|
||||||
|
IN ULONG BufferSize)
|
||||||
{
|
{
|
||||||
KFLOATING_SAVE TempBuffer;
|
KFLOATING_SAVE TempBuffer;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
if (Buffer == NULL || BufferSize == 0)
|
|
||||||
|
if ((Buffer == NULL) || (BufferSize == 0))
|
||||||
{
|
{
|
||||||
/* Check for floating point support. */
|
/* Check for floating point support. */
|
||||||
Status = KeSaveFloatingPointState(&TempBuffer);
|
Status = KeSaveFloatingPointState(&TempBuffer);
|
||||||
if (Status != STATUS_SUCCESS)
|
if (Status != STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
KeRestoreFloatingPointState(&TempBuffer);
|
|
||||||
return(sizeof(KFLOATING_SAVE));
|
KeRestoreFloatingPointState(&TempBuffer);
|
||||||
|
return(sizeof(KFLOATING_SAVE));
|
||||||
}
|
}
|
||||||
if (BufferSize < sizeof(KFLOATING_SAVE))
|
|
||||||
|
if (BufferSize < sizeof(KFLOATING_SAVE))
|
||||||
{
|
{
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
Status = KeSaveFloatingPointState((PKFLOATING_SAVE)Buffer);
|
|
||||||
if (!NT_SUCCESS(Status))
|
Status = KeSaveFloatingPointState((PKFLOATING_SAVE)Buffer);
|
||||||
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
return TRUE;
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue