mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 00:45:43 +00:00
[KMTESTS:RTL]
- Fix a warning svn path=/trunk/; revision=59463
This commit is contained in:
parent
4cdc7f487e
commit
e241bb486e
1 changed files with 2 additions and 3 deletions
|
@ -11,7 +11,6 @@ START_TEST(RtlException)
|
||||||
{
|
{
|
||||||
NTSTATUS ExceptionStatus;
|
NTSTATUS ExceptionStatus;
|
||||||
PCHAR Buffer[128];
|
PCHAR Buffer[128];
|
||||||
CHAR Value;
|
|
||||||
|
|
||||||
/* Access a valid pointer - must not trigger SEH */
|
/* Access a valid pointer - must not trigger SEH */
|
||||||
KmtStartSeh()
|
KmtStartSeh()
|
||||||
|
@ -20,7 +19,7 @@ START_TEST(RtlException)
|
||||||
|
|
||||||
/* Read from a NULL pointer - must cause an access violation */
|
/* Read from a NULL pointer - must cause an access violation */
|
||||||
KmtStartSeh()
|
KmtStartSeh()
|
||||||
Value = *(volatile CHAR *)NULL;
|
(void)*(volatile CHAR *)NULL;
|
||||||
KmtEndSeh(STATUS_ACCESS_VIOLATION);
|
KmtEndSeh(STATUS_ACCESS_VIOLATION);
|
||||||
|
|
||||||
/* Write to a NULL pointer - must cause an access violation */
|
/* Write to a NULL pointer - must cause an access violation */
|
||||||
|
@ -32,7 +31,7 @@ START_TEST(RtlException)
|
||||||
#if 0 //def KMT_KERNEL_MODE
|
#if 0 //def KMT_KERNEL_MODE
|
||||||
/* Read from MmBadPointer - must cause an access violation */
|
/* Read from MmBadPointer - must cause an access violation */
|
||||||
KmtStartSeh()
|
KmtStartSeh()
|
||||||
Value = *(volatile CHAR *)MmBadPointer;
|
(void)*(volatile CHAR *)MmBadPointer;
|
||||||
KmtEndSeh(STATUS_ACCESS_VIOLATION);
|
KmtEndSeh(STATUS_ACCESS_VIOLATION);
|
||||||
|
|
||||||
/* Write to MmBadPointer - must cause an access violation */
|
/* Write to MmBadPointer - must cause an access violation */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue