From 12fb05c6cd30738345671ed16d65760e4a33ac75 Mon Sep 17 00:00:00 2001 From: dinkc64 Date: Thu, 2 Nov 2023 09:44:44 -0400 Subject: [PATCH] warning --- src/burn/burn.cpp | 4 ++-- src/burner/win32/neocdsel.cpp | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/burn/burn.cpp b/src/burn/burn.cpp index bfb4c389c7..7e2286c4b7 100644 --- a/src/burn/burn.cpp +++ b/src/burn/burn.cpp @@ -506,7 +506,7 @@ void BurnLocalisationSetNameEx(char* szName, TCHAR* szLongName, INT32 nNumGames) char szShortNames[100] = { 0 }; sprintf(szShortNames, "%s[0x%02x]", pDriver[nBurnDrvActive]->szShortName, nBurnDrvSubActive); - for (UINT32 i = 0; i < nNumGames; i++) { + for (INT32 i = 0; i < nNumGames; i++) { if (0 == strcmp(szName, szShortNames)) { // pDriver[nBurnDrvActive]->szFullNameW = szLongName; memset(pszFullName[nBurnDrvActive], '\0', MAX_PATH * sizeof(wchar_t)); @@ -521,7 +521,7 @@ extern "C" INT32 BurnDrvGetIndex(char* szName) { if (NULL == szName) return -1; - for (INT32 i = 0; i < nBurnDrvCount; i++) { + for (UINT32 i = 0; i < nBurnDrvCount; i++) { if (0 == strcmp(szName, pDriver[i]->szShortName)) { // nBurnDrvActive = i; return i; diff --git a/src/burner/win32/neocdsel.cpp b/src/burner/win32/neocdsel.cpp index 8536691668..7b10e32cb5 100644 --- a/src/burner/win32/neocdsel.cpp +++ b/src/burner/win32/neocdsel.cpp @@ -405,8 +405,6 @@ static PNGRESOLUTION GetPNGResolution(TCHAR* szFile) nResolution.nWidth = img.width; nResolution.nHeight = img.height; - bprintf(0, _T("Png res [%s] %d, %d\n"), szFile, img.width, img.height); - fclose(fp); return nResolution;