mirror of
https://github.com/reactos/reactos.git
synced 2024-10-30 11:35:58 +00:00
9ea495ba33
svn path=/branches/header-work/; revision=45691
20 lines
305 B
C
20 lines
305 B
C
|
|
struct FLOATSAFE
|
|
{
|
|
KFLOATING_SAVE FloatSave;
|
|
NTSTATUS ntStatus;
|
|
|
|
FLOATSAFE::FLOATSAFE(void)
|
|
{
|
|
ntStatus = KeSaveFloatingPointState(&FloatSave);
|
|
}
|
|
|
|
FLOATSAFE::~FLOATSAFE(void)
|
|
{
|
|
if (NT_SUCCESS(ntStatus))
|
|
{
|
|
KeRestoreFloatingPointState(&FloatSave);
|
|
}
|
|
}
|
|
};
|