mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 19:43:04 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
14
sdk/include/ddk/fltsafe.h
Normal file
14
sdk/include/ddk/fltsafe.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#if (NTDDI_VERSION >= NTDDI_WINXP)
|
||||
struct FLOATSAFE {
|
||||
KFLOATING_SAVE FloatSave;
|
||||
NTSTATUS ntStatus;
|
||||
FLOATSAFE::FLOATSAFE(void) {
|
||||
ntStatus = KeSaveFloatingPointState(&FloatSave);
|
||||
}
|
||||
FLOATSAFE::~FLOATSAFE(void) {
|
||||
if (NT_SUCCESS(ntStatus)) {
|
||||
KeRestoreFloatingPointState(&FloatSave);
|
||||
}
|
||||
}
|
||||
};
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue