X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=rostests%2Fkmtests%2Fkmtest%2Fsupport.c;h=4883382f7ca064eca6b0d0fe2dc04dbd8b819ab8;hp=03c10af2cce350248e71d83ddc298d95eeffd403;hb=2ab0757b32dca595fc0710245d50880f7e6ae7d0;hpb=84ffa0b5f9c6632adf433dad45e6e403349bf59c diff --git a/rostests/kmtests/kmtest/support.c b/rostests/kmtests/kmtest/support.c index 03c10af2cce..4883382f7ca 100644 --- a/rostests/kmtests/kmtest/support.c +++ b/rostests/kmtests/kmtest/support.c @@ -31,7 +31,7 @@ KmtRunKernelTest( DWORD Error = ERROR_SUCCESS; DWORD BytesRead; - if (!DeviceIoControl(KmtestHandle, IOCTL_KMTEST_RUN_TEST, (PVOID)TestName, strlen(TestName), NULL, 0, &BytesRead, NULL)) + if (!DeviceIoControl(KmtestHandle, IOCTL_KMTEST_RUN_TEST, (PVOID)TestName, (DWORD)strlen(TestName), NULL, 0, &BytesRead, NULL)) error(Error); return Error; @@ -181,7 +181,7 @@ KmtSendStringToDriver( assert(ControlCode < 0x400); - if (!DeviceIoControl(TestDeviceHandle, KMT_MAKE_CODE(ControlCode), (PVOID)String, strlen(String), NULL, 0, &BytesRead, NULL)) + if (!DeviceIoControl(TestDeviceHandle, KMT_MAKE_CODE(ControlCode), (PVOID)String, (DWORD)strlen(String), NULL, 0, &BytesRead, NULL)) return GetLastError(); return ERROR_SUCCESS;