Some minor fixes.

This commit is contained in:
WrinklyNinja
2014-07-12 16:34:48 +01:00
parent b867b8b69a
commit 695e971f31
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ namespace loot {
CefRefPtr<Callback> callback) {
const std::string& message_name = request;
if (message_name.find("openReadme") == 0) {
if (message_name == "openReadme") {
// Open readme in default application.
HINSTANCE ret = ShellExecute(0, NULL, ToWinWide(ToFileURL(g_path_readme)).c_str(), NULL, NULL, SW_SHOWNORMAL);
if ((int)ret > 32)
+1 -1
View File
@@ -153,7 +153,7 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmd
//Disable CEF logging.
cef_settings.command_line_args_disabled = true;
CefString(&cef_settings.locale).FromString(localeId);
CefString(&cef_settings.locale).FromString(localeId.substr(0, localeId.length() - 7));
if (verbosity == 0)
cef_settings.log_severity = LOGSEVERITY_DISABLE;