From ae8289b6c54bbf78c197071568ded42ef15c88f1 Mon Sep 17 00:00:00 2001 From: Doug Lyons Date: Fri, 7 Apr 2023 13:13:22 -0500 Subject: [PATCH] [ADVAPI32] Do not fail on creating a registry key if the security attributes have an invalid length. This reverts commit cc0716b65 (r24491). --- dll/win32/advapi32/reg/reg.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/dll/win32/advapi32/reg/reg.c b/dll/win32/advapi32/reg/reg.c index 904ca010eca4..58515793c4ee 100644 --- a/dll/win32/advapi32/reg/reg.c +++ b/dll/win32/advapi32/reg/reg.c @@ -1108,9 +1108,6 @@ RegCreateKeyExW( TRACE("RegCreateKeyExW() called\n"); - if (lpSecurityAttributes && lpSecurityAttributes->nLength != sizeof(SECURITY_ATTRIBUTES)) - return ERROR_INVALID_USER_BUFFER; - /* get the real parent key */ Status = MapDefaultKey(&ParentKey, hKey);