mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 16:45:50 +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
|
@ -3,7 +3,7 @@
|
|||
* PROJECT: ReactOS kernel
|
||||
* PURPOSE: Engine floating point functions
|
||||
* FILE: subsys/win32k/eng/float.c
|
||||
* PROGRAMER: Jason Filby
|
||||
* PROGRAMER: David Welch
|
||||
*/
|
||||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
@ -17,43 +17,53 @@
|
|||
|
||||
BOOL
|
||||
APIENTRY
|
||||
EngRestoreFloatingPointState ( IN VOID *Buffer )
|
||||
EngRestoreFloatingPointState(
|
||||
IN VOID *Buffer)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
Status = KeRestoreFloatingPointState((PKFLOATING_SAVE)Buffer);
|
||||
if (!NT_SUCCESS(Status))
|
||||
NTSTATUS Status;
|
||||
|
||||
Status = KeRestoreFloatingPointState((PKFLOATING_SAVE)Buffer);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
return FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
ULONG
|
||||
APIENTRY
|
||||
EngSaveFloatingPointState(OUT VOID *Buffer,
|
||||
IN ULONG BufferSize)
|
||||
EngSaveFloatingPointState(
|
||||
OUT VOID *Buffer,
|
||||
IN ULONG BufferSize)
|
||||
{
|
||||
KFLOATING_SAVE TempBuffer;
|
||||
NTSTATUS Status;
|
||||
if (Buffer == NULL || BufferSize == 0)
|
||||
KFLOATING_SAVE TempBuffer;
|
||||
NTSTATUS Status;
|
||||
|
||||
if ((Buffer == NULL) || (BufferSize == 0))
|
||||
{
|
||||
/* Check for floating point support. */
|
||||
Status = KeSaveFloatingPointState(&TempBuffer);
|
||||
if (Status != STATUS_SUCCESS)
|
||||
{
|
||||
return(0);
|
||||
}
|
||||
KeRestoreFloatingPointState(&TempBuffer);
|
||||
return(sizeof(KFLOATING_SAVE));
|
||||
/* Check for floating point support. */
|
||||
Status = KeSaveFloatingPointState(&TempBuffer);
|
||||
if (Status != STATUS_SUCCESS)
|
||||
{
|
||||
return(0);
|
||||
}
|
||||
|
||||
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