Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HIllya51 committed Nov 10, 2024
1 parent b8ce0ed commit 1de8afa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions cpp/LunaHook/include/stringutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,15 @@ std::optional<std::wstring> StringToWideString(std::string_view text, UINT encod

std::wstring StringToWideString(const std::string &text)
{
return StringToWideString(text, CP_UTF8).value();
if (!text.size())
return L"";
return StringToWideString(text, CP_UTF8).value_or(L"");
}
std::wstring StringToWideString(std::string_view text)
{
return StringToWideString(text, CP_UTF8).value();
if (!text.size())
return L"";
return StringToWideString(text, CP_UTF8).value_or(L"");
}

std::optional<std::wstring> StringToWideString(const char *text, UINT encoding)
Expand Down
2 changes: 1 addition & 1 deletion cpp/scripts/build32.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
python fetchwebview2.py
cmake ..\CMakeLists.txt -G "Visual Studio 17 2022" -A win32 -T host=x86 -B ..\build\x86
cmake --build ..\build\x86 --config Release --target ALL_BUILD -j 14
copy .\builds\_x86\shareddllproxy32.exe ..\..\py\files\plugins
copy ..\builds\_x86\shareddllproxy32.exe ..\..\py\files\plugins
robocopy ..\builds\_x86 ..\..\py\files\plugins\DLL32
2 changes: 1 addition & 1 deletion cpp/version.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

set(VERSION_MAJOR 5)
set(VERSION_MINOR 57)
set(VERSION_PATCH 1)
set(VERSION_PATCH 2)
set(VERSION_REVISION 0)
add_definitions(-DVERSION_MAJOR=${VERSION_MAJOR})
add_definitions(-DVERSION_MINOR=${VERSION_MINOR})
Expand Down

0 comments on commit 1de8afa

Please sign in to comment.