Paul Chitescu : wineserver: Do not uselessly set the KEY_DIRTY flag on registry keys when loading from file .

Alexandre Julliard julliard at winehq.org
Tue Nov 24 12:40:24 CST 2009


Module: wine
Branch: master
Commit: 51000c171b256b1367550cfab6f77d34d8c63f68
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=51000c171b256b1367550cfab6f77d34d8c63f68

Author: Paul Chitescu <paulc at voip.null.ro>
Date:   Tue Nov 24 15:12:56 2009 +0200

wineserver: Do not uselessly set the KEY_DIRTY flag on registry keys when loading from file.

---

 server/registry.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/server/registry.c b/server/registry.c
index 1fa2c67..afdffed 100644
--- a/server/registry.c
+++ b/server/registry.c
@@ -1257,7 +1257,6 @@ static int load_value( struct key *key, const char *buffer, struct file_load_inf
     value->data = newptr;
     value->len  = len;
     value->type = type;
-    make_dirty( key );
     return 1;
 
  error:
@@ -1266,7 +1265,6 @@ static int load_value( struct key *key, const char *buffer, struct file_load_inf
     value->data = NULL;
     value->len  = 0;
     value->type = REG_NONE;
-    make_dirty( key );
     return 0;
 }
 
@@ -1304,7 +1302,6 @@ static void load_keys( struct key *key, const char *filename, FILE *f, int prefi
     struct key *subkey = NULL;
     struct file_load_info info;
     char *p;
-    int flags = (key->flags & KEY_VOLATILE) ? KEY_VOLATILE : KEY_DIRTY;
 
     info.filename = filename;
     info.file   = f;
@@ -1334,7 +1331,7 @@ static void load_keys( struct key *key, const char *filename, FILE *f, int prefi
         case '[':   /* new key */
             if (subkey) release_object( subkey );
             if (prefix_len == -1) prefix_len = get_prefix_len( key, p + 1, &info );
-            if (!(subkey = load_key( key, p + 1, flags, prefix_len, &info )))
+            if (!(subkey = load_key( key, p + 1, key->flags, prefix_len, &info )))
                 file_read_error( "Error creating key", &info );
             break;
         case '@':   /* default value */




More information about the wine-cvs mailing list