Fixed win32 compile error

This commit is contained in:
Daniel Collin 2013-01-09 19:23:52 +01:00
parent 53027b06bd
commit 53a9975533

View File

@ -836,9 +836,9 @@ static void setWindowTitle(const text_t* path, bool needsSave)
text_t windowTitle[4096];
#if defined(_WIN32)
if (needsSave)
swprintf_s(windowTitle, sizeof(windowTitle), L"RocketEditor" EDITOR_VERSION "- (%s) *", path);
swprintf_s(windowTitle, sizeof(windowTitle), L"RocketEditor" EDITOR_VERSION L"- (%s) *", path);
else
swprintf_s(windowTitle, sizeof(windowTitle), L"RocketEditor" EDITOR_VERSION " - (%s)", path);
swprintf_s(windowTitle, sizeof(windowTitle), L"RocketEditor" EDITOR_VERSION L" - (%s)", path);
#else
if (needsSave)
sprintf(windowTitle, "RocketEditor" EDITOR_VERSION "- (%s) *", path);