From 5ea6410107966c43897a415ffcb7745d7b2899da Mon Sep 17 00:00:00 2001 From: mtabachenko Date: Sat, 21 Sep 2013 15:06:03 +0000 Subject: [PATCH] winport: - buildfix; --- desmume/src/windows/cheatsWin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/windows/cheatsWin.cpp b/desmume/src/windows/cheatsWin.cpp index d78837cc1..00af64749 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 (cheatsExport->gametitle && (std::string)cheatsExport->gametitle != "") + if (cheatsExport->gametitle && strlen((char*)cheatsExport->gametitle) > 0) { char buf[512] = {0}; GetWindowText(dialog, &buf[0], sizeof(buf));