1
0
mirror of https://github.com/UzixLS/KernelEx.git synced 2025-07-19 07:21:20 +03:00

import KernelEx-4.5-Beta1

This commit is contained in:
UzixLS
2018-11-03 16:21:13 +03:00
parent d6aad6c6c5
commit 09929b2b7d
392 changed files with 17832 additions and 2491 deletions

11
core/SettingsDB.cpp Normal file → Executable file
View File

@ -66,6 +66,7 @@ void SettingsDB::parse_configs()
HKEY key;
DWORD index = 0;
char path[MAX_PATH];
char epath[MAX_PATH];
DWORD path_len;
char name[256];
DWORD name_len;
@ -98,13 +99,17 @@ void SettingsDB::parse_configs()
if (!as.conf)
continue;
strupr(path);
if (strchr(path, '*') || strchr(path, '?'))
int ret = ExpandEnvironmentStrings(path, epath, MAX_PATH);
if (ret > MAX_PATH || ret == 0)
continue;
strupr(epath);
if (strchr(epath, '*') || strchr(epath, '?'))
pdb = &db_wild;
else
pdb = &db;
pdb->insert(pair<sstring, appsetting>(path, as));
pdb->insert(pair<sstring, appsetting>(epath, as));
}
RegCloseKey(key);
}