mirror of
https://github.com/reactos/reactos.git
synced 2025-05-30 14:39:46 +00:00
Fixed large integer conv bug
svn path=/trunk/; revision=77
This commit is contained in:
parent
e68e2e431a
commit
09215f3126
1 changed files with 5 additions and 3 deletions
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include <ddk/ntddk.h>
|
||||||
|
|
||||||
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
@ -32,7 +33,7 @@ NTSTATUS IoInitializeTimer(PDEVICE_OBJECT DeviceObject,
|
||||||
{
|
{
|
||||||
DeviceObject->Timer = ExAllocatePool(NonPagedPool,sizeof(IO_TIMER));
|
DeviceObject->Timer = ExAllocatePool(NonPagedPool,sizeof(IO_TIMER));
|
||||||
KeInitializeTimer(&(DeviceObject->Timer->timer));
|
KeInitializeTimer(&(DeviceObject->Timer->timer));
|
||||||
KeInitializeDpc(&(DeviceObject->Timer->dpc),TimerRoutine,Context);
|
KeInitializeDpc(&(DeviceObject->Timer->dpc),(PKDEFERRED_ROUTINE)TimerRoutine,Context);
|
||||||
|
|
||||||
return(STATUS_SUCCESS);
|
return(STATUS_SUCCESS);
|
||||||
}
|
}
|
||||||
|
@ -45,10 +46,11 @@ VOID IoStartTimer(PDEVICE_OBJECT DeviceObject)
|
||||||
* DeviceObject = Device whose timer is to be started
|
* DeviceObject = Device whose timer is to be started
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
|
long long int lli;
|
||||||
LARGE_INTEGER li;
|
LARGE_INTEGER li;
|
||||||
|
|
||||||
li.HighPart = -1;
|
lli = -1000000;
|
||||||
li.LowPart = 10000000;
|
li = *(LARGE_INTEGER *)&lli;
|
||||||
|
|
||||||
KeSetTimerEx(&DeviceObject->Timer->timer,li,1000,
|
KeSetTimerEx(&DeviceObject->Timer->timer,li,1000,
|
||||||
&(DeviceObject->Timer->dpc));
|
&(DeviceObject->Timer->dpc));
|
||||||
|
|
Loading…
Reference in a new issue