[Project64] Do not strcpy on empty item
This commit is contained in:
parent
655a73e1fa
commit
1b19da6115
|
@ -1431,7 +1431,7 @@ void CRomBrowser::RomList_GetDispInfo(uint32_t pnmh)
|
|||
break;
|
||||
default: wcsncpy(lpdi->item.pszText, L" ", lpdi->item.cchTextMax);
|
||||
}
|
||||
if (lpdi->item.pszText == NULL || wcslen(lpdi->item.pszText) == 0) { wcscpy(lpdi->item.pszText, L" "); }
|
||||
if (lpdi->item.pszText == NULL || wcslen(lpdi->item.pszText) == 0) { lpdi->item.pszText = L" "; }
|
||||
}
|
||||
|
||||
void CRomBrowser::RomList_OpenRom(uint32_t /*pnmh*/)
|
||||
|
|
Loading…
Reference in New Issue