From e3b9bd97474df465a4b8451ad1d16efb818f9db1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Maxime=20Belleng=C3=A9?= <maxime.bellenge@laposte.net>
Date: Sun, 30 Mar 2003 03:05:12 +0000
Subject: [PATCH] Fix a regression when loading a real windows registry.

---
 misc/registry.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc/registry.c b/misc/registry.c
index cbf52e012e2..b2800df6289 100644
--- a/misc/registry.c
+++ b/misc/registry.c
@@ -1370,7 +1370,7 @@ static LPSTR _convert_winnt_registry_to_wine_format(LPCWSTR fn, int level)
     base = NULL; len = 0;
     nts = NtMapViewOfSection( hMapping, GetCurrentProcess(),
                               &base, 0, 0, &lg_int, &len, ViewShare, 0, 
-                              FILE_MAP_READ );
+			      PAGE_READONLY);
     NtClose( hMapping );
     if (nts != STATUS_SUCCESS) goto error1;
 
-- 
GitLab