cpu16h, icorender.cpp: fix MSVC compile (nw)

This commit is contained in:
Peter Ferrie 2022-08-01 18:56:55 -07:00
parent 800f7efda8
commit b033ebf843
2 changed files with 3 additions and 7 deletions

View File

@ -121,8 +121,4 @@ private:
s32 m_icount;
};
// device type declaration
DECLARE_DEVICE_TYPE(MC68HC16Z1, mc68hc16z1_device)
#endif // MAME_CPU_M68HC16_CPU16_H

View File

@ -179,7 +179,7 @@ bool load_ico_image(util::core_file &fp, unsigned count, unsigned index, bitmap_
{
// read the directory entry
std::error_condition err;
size_t actual;
size_t actual = 0;
icon_dir_entry_t dir;
err = fp.seek(sizeof(icon_dir_t) + (sizeof(icon_dir_entry_t) * index), SEEK_SET);
if (!err)
@ -212,8 +212,8 @@ int images_in_ico(util::core_file &fp)
{
// read and check the icon file header
std::error_condition err;
size_t actual;
icon_dir_t header;
size_t actual = 0;
icon_dir_t header = { };
err = fp.seek(0, SEEK_SET);
if (!err)
err = fp.read(&header, sizeof(header), actual);