diff --git a/desmume/src/windows/cheatsWin.cpp b/desmume/src/windows/cheatsWin.cpp index 68da029db..d78837cc1 100644 --- a/desmume/src/windows/cheatsWin.cpp +++ b/desmume/src/windows/cheatsWin.cpp @@ -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));