core/win32/os.c
/* draw a message box on the screen with msg */
draw a message box on the screen with msg
draw a message box on the screen with msg
int
debugbox(char *msg)
{
    int res;
    if (debugbox_title_buf[0] == 0)
        init_debugbox_title_buf();
    mutex_lock(&debugbox_lock);
    snwprintf(debugbox_msg_buf, BUFFER_SIZE_ELEMENTS(debugbox_msg_buf), L"%hs", msg);
    NULL_TERMINATE_BUFFER(debugbox_msg_buf);
    res = nt_messagebox(debugbox_msg_buf, debugbox_title_buf);
    mutex_unlock(&debugbox_lock);
    return res;
}
int debugbox ( char * msg ) { int res ; if ( debugbox_title_buf [ 0 ] == 0 ) init_debugbox_title_buf ( ) ; mutex_lock ( & debugbox_lock ) ; snwprintf ( debugbox_msg_buf , BUFFER_SIZE_ELEMENTS ( debugbox_msg_buf ) , L" " , msg ) ; NULL_TERMINATE_BUFFER ( debugbox_msg_buf ) ; res = nt_messagebox ( debugbox_msg_buf , debugbox_title_buf ) ; mutex_unlock ( & debugbox_lock ) ; return res ; }
draw a message box on the screen with msg
draw a message box on the screen with msg
/* FIXME: If we hit an assert in nt_messagebox, we'll deadlock when
     * we come back here.
     */