]> Chaos Git - corbenik/ctrulib.git/commitdiff
os: Fix switch fallthrough in osGetTime.
authorLioncash <mathew1800@gmail.com>
Sun, 26 Oct 2014 23:21:26 +0000 (19:21 -0400)
committerLioncash <mathew1800@gmail.com>
Sun, 26 Oct 2014 23:21:37 +0000 (19:21 -0400)
libctru/source/os.c

index 84431bf2964ee85161ce026ff118773e3e73d60b..6274b34b8e19e6ee98fe1c6c82417f5781c082ca 100644 (file)
@@ -36,8 +36,10 @@ u64 osGetTime() {
        switch(*__datetime_selector & 1) {
        case 0:
                dt = __datetime1;
+               break;
        case 1:
                dt = __datetime2;
+               break;
        }
 
        u64 offset = (svcGetSystemTick() - dt->update_tick) / TICKS_PER_MSEC;