From 7b649e936fddb597b8a8e613aca00b91d0a9d79b Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Mon, 20 Nov 2017 12:53:19 +0000 Subject: [PATCH] Handle leading or trailing spaces in config list entries on Windows Fixes issue with Cmdr names with trailing spaces. --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index 7e54f667..36b73d78 100644 --- a/config.py +++ b/config.py @@ -235,7 +235,7 @@ class Config: if RegQueryValueEx(self.hkey, key, 0, ctypes.byref(typ), buf, ctypes.byref(size)): return None elif typ.value == REG_MULTI_SZ: - return [x.strip() for x in ctypes.wstring_at(buf, len(buf)-2).split(u'\x00')] + return [x for x in ctypes.wstring_at(buf, len(buf)-2).split(u'\x00')] else: return buf.value