mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[KMTESTS]
- add missing function KmtAreInterruptsEnabled - fix an MSVC warning svn path=/branches/GSoC_2011/KMTestSuite/; revision=52888
This commit is contained in:
parent
09ddc722bd
commit
c8c231d756
2 changed files with 7 additions and 1 deletions
|
@ -84,6 +84,7 @@ extern BOOLEAN KmtIsCheckedBuild;
|
|||
extern BOOLEAN KmtIsMultiProcessorBuild;
|
||||
|
||||
VOID KmtSetIrql(IN KIRQL NewIrql);
|
||||
BOOLEAN KmtAreInterruptsEnabled(VOID);
|
||||
#elif defined KMT_USER_MODE
|
||||
DWORD KmtRunKernelTest(IN PCSTR TestName);
|
||||
|
||||
|
@ -165,6 +166,11 @@ VOID KmtSetIrql(IN KIRQL NewIrql)
|
|||
KeRaiseIrql(NewIrql, &Irql);
|
||||
}
|
||||
|
||||
BOOLEAN KmtAreInterruptsEnabled(VOID)
|
||||
{
|
||||
return (__readeflags() & (1 << 9)) != 0;
|
||||
}
|
||||
|
||||
INT __cdecl KmtVSNPrintF(PSTR Buffer, SIZE_T BufferMaxLength, PCSTR Format, va_list Arguments) KMT_FORMAT(ms_printf, 3, 0);
|
||||
#elif defined KMT_USER_MODE
|
||||
static PKMT_RESULTBUFFER KmtAllocateResultBuffer(SIZE_T LogBufferMaxLength)
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
int __cdecl KmtWcToMb(char *mbchar, wchar_t wchar)
|
||||
{
|
||||
*mbchar = wchar;
|
||||
*mbchar = (char)wchar;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue