From 14897e1bbab117626d1adf9717e83db9cf30f197 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 9 Jan 2026 09:06:49 +0100 Subject: [PATCH] [winpr,nt] FSInformationClass2Tag parameter Use UINT32 as input parameter as we might have an invalid value not contained in the FILE_INFORMATION_CLASS enum --- winpr/include/winpr/nt.h | 2 +- winpr/libwinpr/nt/nt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/winpr/include/winpr/nt.h b/winpr/include/winpr/nt.h index b6327b18a..4ae46c750 100644 --- a/winpr/include/winpr/nt.h +++ b/winpr/include/winpr/nt.h @@ -1572,7 +1572,7 @@ extern "C" * @return A string representation of the value or "UNKNOWN" for invalid values * @since version 3.13.0 */ - WINPR_API const char* FSInformationClass2Tag(FILE_INFORMATION_CLASS value); + WINPR_API const char* FSInformationClass2Tag(UINT32 value); #ifdef __cplusplus } diff --git a/winpr/libwinpr/nt/nt.c b/winpr/libwinpr/nt/nt.c index f0684e766..d9bea2f1d 100644 --- a/winpr/libwinpr/nt/nt.c +++ b/winpr/libwinpr/nt/nt.c @@ -63,7 +63,7 @@ PTEB NtCurrentTeb(void) } #endif -const char* FSInformationClass2Tag(FILE_INFORMATION_CLASS value) +const char* FSInformationClass2Tag(UINT32 value) { switch (value) {