https://git.reactos.org/?p=reactos.git;a=commitdiff;h=42b94e728a5e4046a4363cea0722625a600a5321

commit 42b94e728a5e4046a4363cea0722625a600a5321
Author:     Jérôme Gardou <[email protected]>
AuthorDate: Tue Mar 2 15:39:25 2021 +0100
Commit:     Jérôme Gardou <[email protected]>
CommitDate: Tue Mar 2 15:42:21 2021 +0100

    [ADVAPI32] In RegSetValueExW, do not fail if we fault when checking for 
ending NUL character
---
 dll/win32/advapi32/reg/reg.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dll/win32/advapi32/reg/reg.c b/dll/win32/advapi32/reg/reg.c
index b3e08e18907..36aa3b867ae 100644
--- a/dll/win32/advapi32/reg/reg.c
+++ b/dll/win32/advapi32/reg/reg.c
@@ -4933,8 +4933,7 @@ RegSetValueExW(
         }
         _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
         {
-            ClosePredefKey(KeyHandle);
-            return ERROR_NOACCESS;
+            /* Do not fail if we fault where we were told not to go */
         }
         _SEH2_END;
     }

Reply via email to