Properly append version to the messagebox title

This commit is contained in:
mkrsym1 2023-08-05 09:22:15 +03:00
parent b8aa6f968b
commit bb8d41c06d
3 changed files with 4 additions and 4 deletions

View File

@ -22,8 +22,8 @@
suffix; \
}
const char *TITLE_A = "v" JADEITE_VERSION "Jadeite Autopatcher";
const wchar_t *TITLE_W = L"v" JADEITE_VERSION "Jadeite Autopatcher";
const char *TITLE_A = "v" JADEITE_VERSION " Jadeite Autopatcher";
const wchar_t *TITLE_W = L"v" JADEITE_VERSION " Jadeite Autopatcher";
// Error
DEF_MSG_FN(msg_err_a, char, _vsnprintf, MessageBoxA, TITLE_A, MB_OK | MB_ICONERROR, exit(1))

View File

@ -73,9 +73,9 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) {
// Start the game
STARTUPINFOW si;
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
PROCESS_INFORMATION pi;
si.cb = sizeof(si);
ZeroMemory(&pi, sizeof(pi));
if (!CreateProcessW(

View File

@ -85,9 +85,9 @@ int wmain(int argc, wchar_t **argv) {
STARTUPINFOW si;
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
PROCESS_INFORMATION pi;
si.cb = sizeof(si);
ZeroMemory(&pi, sizeof(pi));
if (!CreateProcessW(