barclock: Fix crash when there is no active window
This commit is contained in:
parent
0c3a0afc5f
commit
d8c0874b7c
|
@ -45,6 +45,12 @@ loop_end:
|
||||||
draw_window_title:
|
draw_window_title:
|
||||||
mov [active_window_struct_ptr], r0
|
mov [active_window_struct_ptr], r0
|
||||||
|
|
||||||
|
; if there is no active window, clear the menu bar and return
|
||||||
|
cmp r0, 0
|
||||||
|
ifz call clear_menu_bar
|
||||||
|
cmp r0, 0
|
||||||
|
ifz ret
|
||||||
|
|
||||||
; get the title string pointer
|
; get the title string pointer
|
||||||
add r0, 12
|
add r0, 12
|
||||||
mov r0, [r0]
|
mov r0, [r0]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user