More title-related fixes.

This commit is contained in:
OBattler
2016-08-15 07:15:41 +02:00
parent 83687000a4
commit e741f3cbd8
2 changed files with 3 additions and 2 deletions

View File

@@ -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);

View File

@@ -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 */