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.
stable-6.1
Sven Eberhardt 2015-05-22 21:19:03 +02:00 committed by Nicolas Hake
parent cc46f0a388
commit 6b27635bf3
1 changed files with 2 additions and 0 deletions

View File

@ -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