diff --git a/src/drivers/win/cdlogger.cpp b/src/drivers/win/cdlogger.cpp index 805a2233..9509b845 100644 --- a/src/drivers/win/cdlogger.cpp +++ b/src/drivers/win/cdlogger.cpp @@ -237,10 +237,12 @@ void DoCDLogger(){ } void UpdateCDLogger(){ + if(!hCDLogger)return; + char str[50]; float fcodecount = codecount, fdatacount = datacount, fundefinedcount = undefinedcount, fromsize = PRGsize[0]; - if(!hCDLogger)return; + sprintf(str,"0x%06x %.2f%%",codecount,fcodecount/fromsize*100); SetDlgItemText(hCDLogger,LBL_CDLOGGER_CODECOUNT,str); sprintf(str,"0x%06x %.2f%%",datacount,fdatacount/fromsize*100); diff --git a/src/drivers/win/memview.cpp b/src/drivers/win/memview.cpp index 5a6d6dcf..16e2c5e0 100644 --- a/src/drivers/win/memview.cpp +++ b/src/drivers/win/memview.cpp @@ -320,6 +320,7 @@ void UnloadTableFile(){ } void UpdateMemoryView(int draw_all) { + if (!hMemView) return; int MemFontWidth = debugSystem->fixedFontWidth; int MemFontHeight = debugSystem->fixedFontHeight; @@ -328,8 +329,7 @@ void UpdateMemoryView(int draw_all) //int curlength; char str[100]; char str2[100]; - if (!hMemView) return; - + /* if(draw_all){ for(i = CurOffset;i < CurOffset+DataAmount;i+=16){