Commit 9c554c1c0b01642c39232489cef8301a7858824d

Authored by aurel32
1 parent f50dc0ac

cuda: fix crash on Windows

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6364 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
hw/cuda.c
... ... @@ -756,8 +756,8 @@ void cuda_init (int *cuda_mem_index, qemu_irq irq)
756 756  
757 757 s->timers[1].index = 1;
758 758  
759   - qemu_get_timedate(&tm, RTC_OFFSET);
760   - s->tick_offset = mktimegm(&tm);
  759 + qemu_get_timedate(&tm, 0);
  760 + s->tick_offset = (uint32_t)mktimegm(&tm) + RTC_OFFSET;
761 761  
762 762 s->adb_poll_timer = qemu_new_timer(vm_clock, cuda_adb_poll, s);
763 763 *cuda_mem_index = cpu_register_io_memory(0, cuda_read, cuda_write, s);
... ...