From ba493fec0bad1353ee42ab8a9783e4879cac1598 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 15 Jun 2026 13:50:51 +0200 Subject: km: add wdk10 build files & GitHub windows-2022 pipeline --- km/src/simple/device.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'km/src/simple') diff --git a/km/src/simple/device.c b/km/src/simple/device.c index 859ba67..f632a8d 100644 --- a/km/src/simple/device.c +++ b/km/src/simple/device.c @@ -43,7 +43,7 @@ static NTSTATUS handle_say_hello( return STATUS_SUCCESS; } -static unsigned int i = 42; +static unsigned int num = 42; static NTSTATUS handle_exchange_ints( void *in_buf, @@ -52,20 +52,20 @@ static NTSTATUS handle_exchange_ints( unsigned long out_buf_size, ULONG_PTR *nbwritten) { - unsigned int temp_i; + unsigned int temp_num; - if (in_buf_size != sizeof(temp_i)) + if (in_buf_size != sizeof(temp_num)) return STATUS_INVALID_BUFFER_SIZE; - RtlCopyMemory(&temp_i, in_buf, in_buf_size); - DbgPrint("%08x\n", temp_i); + RtlCopyMemory(&temp_num, in_buf, in_buf_size); + DbgPrint("%08x\n", temp_num); - if (out_buf_size < sizeof(i)) + if (out_buf_size < sizeof(num)) return STATUS_BUFFER_TOO_SMALL; - RtlCopyMemory(out_buf, &i, sizeof(i)); - *nbwritten += sizeof(i); - i = temp_i; + RtlCopyMemory(out_buf, &num, sizeof(num)); + *nbwritten += sizeof(num); + num = temp_num; return STATUS_SUCCESS; } -- cgit v1.3