Author: tfaber
Date: Tue Jul 26 07:38:43 2011
New Revision: 52888
URL:
http://svn.reactos.org/svn/reactos?rev=52888&view=rev
Log:
[KMTESTS]
- add missing function KmtAreInterruptsEnabled
- fix an MSVC warning
Modified:
branches/GSoC_2011/KMTestSuite/kmtests/include/kmt_test.h
branches/GSoC_2011/KMTestSuite/kmtests/kmtest_drv/printf_stubs.c
Modified: branches/GSoC_2011/KMTestSuite/kmtests/include/kmt_test.h
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/kmtests/i…
==============================================================================
--- branches/GSoC_2011/KMTestSuite/kmtests/include/kmt_test.h [iso-8859-1] (original)
+++ branches/GSoC_2011/KMTestSuite/kmtests/include/kmt_test.h [iso-8859-1] Tue Jul 26
07:38:43 2011
@@ -84,6 +84,7 @@
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 @@
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)
Modified: branches/GSoC_2011/KMTestSuite/kmtests/kmtest_drv/printf_stubs.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/kmtests/k…
==============================================================================
--- branches/GSoC_2011/KMTestSuite/kmtests/kmtest_drv/printf_stubs.c [iso-8859-1]
(original)
+++ branches/GSoC_2011/KMTestSuite/kmtests/kmtest_drv/printf_stubs.c [iso-8859-1] Tue Jul
26 07:38:43 2011
@@ -12,7 +12,7 @@
int __cdecl KmtWcToMb(char *mbchar, wchar_t wchar)
{
- *mbchar = wchar;
+ *mbchar = (char)wchar;
return 1;
}