Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some minor issues in advancemame compilation. #64

Merged
merged 1 commit into from
Oct 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion advance/dos/wss.c
Original file line number Diff line number Diff line change
Expand Up @@ -5323,7 +5323,7 @@ DWORD w_get_actual_sample_rate(void)
d1 = 65536;
get_played_sample_count();
while (d1 > 0) {
if (get_played_sample_count != 0) break;
if (get_played_sample_count() != 0) break;
d1 -= 1;
}
prev = osd_cycles();
Expand Down
2 changes: 1 addition & 1 deletion advance/svgalib/svgalib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@ void ADV_SVGALIB_CALL adv_svgalib_save(unsigned char* regs)
{
adv_svgalib_log("svgalib: adv_svgalib_save()\n");

memset(regs, ADV_SVGALIB_STATE_SIZE, 0);
memset(regs, 0, ADV_SVGALIB_STATE_SIZE);

if (adv_svgalib_state.driver->drv->unlock)
adv_svgalib_state.driver->drv->unlock();
Expand Down
4 changes: 2 additions & 2 deletions src/machine/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ logerror("EEPROM unlock\n");

static void EEPROM_reset(void)
{
if (serial_count)
logerror("EEPROM reset, buffer = %s\n",serial_buffer);
if (serial_count)
logerror("EEPROM reset, buffer = %s\n",serial_buffer);

serial_count = 0;
sending = 0;
Expand Down