From 6b27635bf334725e6c279d78ec118577d92a4fde Mon Sep 17 00:00:00 2001 From: Sven Eberhardt Date: Fri, 22 May 2015 21:19:03 +0200 Subject: [PATCH] Windows: Fix saving of custom keys (#1313) The registry compiler couldn't handle strings beginning with a separator, which was used for marking keys defined by scan code. --- src/platform/StdRegistry.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/StdRegistry.cpp b/src/platform/StdRegistry.cpp index b8a844e14..24b768d17 100644 --- a/src/platform/StdRegistry.cpp +++ b/src/platform/StdRegistry.cpp @@ -498,6 +498,8 @@ bool StdCompilerConfigRead::FollowName(const char *szName) bool StdCompilerConfigRead::Separator(Sep eSep) { + // ensure string is loaded in case value begins with a separator + if (!LastString.getData()) LastString.Take(ReadString()); if (LastString.getData()) { // separator within string: check if it is there