[misc] report if running x86 emulation on ARM

* Also fix a static analysis warning.
This commit is contained in:
Pete Batard 2023-02-26 22:10:22 +00:00
parent 4e8375c73c
commit aed34ca635
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
3 changed files with 52 additions and 7 deletions

View file

@ -440,8 +440,8 @@ BOOL SmartGetVersion(HANDLE hdevice)
*/
int IsHDD(DWORD DriveIndex, uint16_t vid, uint16_t pid, const char* strid)
{
int score = 0, score_list_size = 0;
size_t i, mlen, ilen;
int score = 0;
size_t i, mlen, ilen, score_list_size = 0;
BOOL wc;
uint64_t drive_size;
int8_t score_list[16];