fix string check in win32 cheat code

This commit is contained in:
zeromus 2013-09-18 21:29:18 +00:00
parent fcb8551d4f
commit 188c53d46c
1 changed files with 1 additions and 1 deletions

View File

@ -1379,7 +1379,7 @@ INT_PTR CALLBACK CheatsExportProc(HWND dialog, UINT msg,WPARAM wparam,LPARAM lpa
case WM_INITDIALOG:
{
SetWindowText(GetDlgItem(dialog, IDC_CDATE), (LPCSTR)cheatsExport->date);
if ((char*)cheatsExport->gametitle != "")
if (cheatsExport->gametitle && (std::string)cheatsExport->gametitle != "")
{
char buf[512] = {0};
GetWindowText(dialog, &buf[0], sizeof(buf));