mirror of
https://github.com/reactos/reactos.git
synced 2024-09-22 10:37:10 +00:00
6afbc8f483
svn path=/branches/reactos-yarotows/; revision=45219
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);
|
|
}
|
|
}
|
|
};
|