From 4eaccd0ae89d12c07926a5df07d17e70ab150618 Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Fri, 25 Aug 2023 13:36:53 -0400
Subject: [PATCH] Fixes for CEF 116

---
 FCHost/fchost/fchost_storage_js.cc | 2 +-
 FCHost/fchost/utility.cc           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/FCHost/fchost/fchost_storage_js.cc b/FCHost/fchost/fchost_storage_js.cc
index a61c5cb204b..19f5c46c9fb 100644
--- a/FCHost/fchost/fchost_storage_js.cc
+++ b/FCHost/fchost/fchost_storage_js.cc
@@ -52,7 +52,7 @@ bool FCHostStorageHandler::Execute(const CefString& name, CefRefPtr<CefV8Value>
 
 	if (name == "size") {
 		// no arguments
-		retval = CefV8Value::CreateInt(static_cast<int32>(storage->size()));
+		retval = CefV8Value::CreateInt(static_cast<int32_t>(storage->size()));
 		return true;
 	}
 	else if (name == "keys") {
diff --git a/FCHost/fchost/utility.cc b/FCHost/fchost/utility.cc
index ff7c7cde3a2..ed1542045a6 100644
--- a/FCHost/fchost/utility.cc
+++ b/FCHost/fchost/utility.cc
@@ -9,7 +9,7 @@ void cef_string_from_path(const std::filesystem::path& p, cef_string_t* str)
 {
 	const auto& pstr = p.native();
 #if defined(OS_WIN)
-	cef_string_from_utf16(pstr.c_str(), pstr.size(), str);
+	cef_string_from_wide(pstr.c_str(), pstr.size(), str);
 #else
 	cef_string_from_utf8(pstr.c_str(), pstr.size(), str);
 #endif
-- 
GitLab