[glib/gregistry-key-name-len] gregistrysettings: bump key name length to 2048



commit 4c1cf03d8419e2c6aeedae860d5624954c6983b6
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date:   Mon Sep 30 18:13:17 2019 +0200

    gregistrysettings: bump key name length to 2048
    
    32 is just too low, specially since the registry has a limit
    of 16,383 chars. Giving that, 2048 is a good bump for now.

 gio/gregistrysettingsbackend.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gregistrysettingsbackend.c b/gio/gregistrysettingsbackend.c
index 26de2518c..524581f21 100644
--- a/gio/gregistrysettingsbackend.c
+++ b/gio/gregistrysettingsbackend.c
@@ -98,7 +98,7 @@
 //#define TRACE
 
 /* GSettings' limit */
-#define MAX_KEY_NAME_LENGTH   32
+#define MAX_KEY_NAME_LENGTH   2048
 
 /* Testing (on Windows XP SP3) shows that WaitForMultipleObjects fails with
  * "The parameter is incorrect" after 64 watches. We need one for the


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]