diff --git a/include/winnt.h b/include/winnt.h index de7622fbe6f..450499c1299 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -5438,7 +5438,7 @@ typedef enum _CM_ERROR_CONTROL_TYPE static FORCEINLINE void *RtlSecureZeroMemory(void *buffer, SIZE_T length) { - volatile char *ptr = buffer; + volatile char *ptr = (volatile char *)buffer; while (length--) *ptr++ = 0; return buffer;