From 72b9d6318608f98845b13d3023bb9dce99fe9a46 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Sun, 3 Nov 2024 10:23:48 +0100 Subject: [PATCH] FIx build --- src/patch_java_manifest_for_utf8.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/patch_java_manifest_for_utf8.cc b/src/patch_java_manifest_for_utf8.cc index a8edbfed0cc5fc..e96296ab89024a 100644 --- a/src/patch_java_manifest_for_utf8.cc +++ b/src/patch_java_manifest_for_utf8.cc @@ -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); @@ -65,7 +65,7 @@ int wmain(int argc, wchar_t *argv[]) { L"UTF-8" + 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) { @@ -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;