reactos/win32ss/gdi/eng/i386/floatobj.c
Jérôme Gardou 12dfa8ce39 [WIN32K] Fix getting long value from float object
Most importantly, do not shift 32-bit integers by 32 or more.
2021-03-31 18:35:31 +02:00

23 lines
515 B
C

/*
* PROJECT: ReactOS win32 kernel mode subsystem
* LICENSE: GPL - See COPYING in the top level directory
* FILE: win32ss/gdi/eng/i386/floatobj.c
* PURPOSE: FLOATOBJ API
* PROGRAMMERS: Jérôme Gardou
*/
/** Includes ******************************************************************/
#include <win32k.h>
#define NDEBUG
#include <debug.h>
LONG
APIENTRY
FLOATOBJ_GetLong(FLOATOBJ* pf)
{
LONG val = 0;
(void)FLOATOBJ_bConvertToLong(pf, &val);
return val;
}