[PATCH 2/2] ntdll: RtlGetNtProductType() should not validate 'type' parameter.

Serge Gautherie winehq-git_serge_180711 at gautherie.fr
Fri Feb 28 05:11:18 CST 2020


Signed-off-by: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
---
 dlls/ntdll/version.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/version.c b/dlls/ntdll/version.c
index 61e48f6..e03bc69 100644
--- a/dlls/ntdll/version.c
+++ b/dlls/ntdll/version.c
@@ -637,7 +637,7 @@ void WINAPI RtlGetNtVersionNumbers( LPDWORD major, LPDWORD minor, LPDWORD build
  */
 BOOLEAN WINAPI RtlGetNtProductType( LPDWORD type )
 {
-    if (type) *type = current_version->wProductType;
+    *type = current_version->wProductType;
     return TRUE;
 }
 
-- 
2.10.0.windows.1




More information about the wine-devel mailing list