Skip to content

Commit

Permalink
FIx build
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Nov 3, 2024
1 parent 7ddafe1 commit 72b9d63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/patch_java_manifest_for_utf8.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ int wmain(int argc, wchar_t *argv[]) {
DWORD manifestLen = SizeofResource(exe, manifestResource);

std::wstring manifest((wchar_t *) manifestData, manifestLen / sizeof(wchar_t));
fwprintf(stderr, L"Manifest data: %S\n", manifest.c_str());
fwprintf(stderr, L"Manifest data: %ls\n", manifest.c_str());

UnlockResource(manifestHandle);
FreeResource(manifestHandle);
Expand All @@ -65,7 +65,7 @@ int wmain(int argc, wchar_t *argv[]) {
L"<activeCodePage xmlns=\"http://schemas.microsoft.com/SMI/2019/WindowsSettings\">UTF-8</activeCodePage>" +
manifest.substr(insertPos);

fwprintf(stderr, L"Modified manifest data: %S\n", newManifest.c_str());
fwprintf(stderr, L"Modified manifest data: %ls\n", newManifest.c_str());

HANDLE updateHandle = BeginUpdateResourceW(argv[1], false);
if (!updateHandle) {
Expand All @@ -78,7 +78,7 @@ int wmain(int argc, wchar_t *argv[]) {
MAKEINTRESOURCEW(1),
MAKEINTRESOURCEW(24),
MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL),
newManifest.c_str(),
(wchar_t*) newManifest.c_str(),
newManifest.size() * sizeof(wchar_t))) {
fwprintf(stderr, L"Error updating resource.\n");
return 1;
Expand Down

0 comments on commit 72b9d63

Please sign in to comment.