From e741f3cbd89901da56b88b9e14e3d16152e8dac9 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 15 Aug 2016 07:15:41 +0200 Subject: [PATCH] More title-related fixes. --- src/win-d3d-fs.cc | 2 +- src/win.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/win-d3d-fs.cc b/src/win-d3d-fs.cc index 1ccdc0925..86d8b895f 100644 --- a/src/win-d3d-fs.cc +++ b/src/win-d3d-fs.cc @@ -82,7 +82,7 @@ void d3d_fs_init(HWND h) { int c; HRESULT hr; - char *emulator_title; + char emulator_title[200]; d3d_fs_w = GetSystemMetrics(SM_CXSCREEN); d3d_fs_h = GetSystemMetrics(SM_CYSCREEN); diff --git a/src/win.c b/src/win.c index 121e2993a..203f4f17c 100644 --- a/src/win.c +++ b/src/win.c @@ -525,7 +525,7 @@ int WINAPI WinMain (HINSTANCE hThisInstance, MSG messages; /* Here messages to the application are saved */ WNDCLASSEX wincl; /* Data structure for the windowclass */ int c, d, bRet; - char *emulator_title; + char emulator_title[200]; LARGE_INTEGER qpc_freq; HACCEL haccel; /* Handle to accelerator table */ @@ -563,6 +563,7 @@ int WINAPI WinMain (HINSTANCE hThisInstance, initmenu(); sprintf(emulator_title, "86Box v%s", emulator_version); + /* The class is registered, let's create the program*/ hwnd = CreateWindowEx ( 0, /* Extended possibilites for variation */