Skip to content

Commit ff7fe96

Browse files
committed
1 parent 856a5fa commit ff7fe96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

winman.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ use win32::window::{MessageBoxA,MessageBoxW};
88
mod win32;
99

1010
fn main() {
11+
// https://github.com/rust-lang/rust/issues/13259
12+
unsafe { ::std::rt::stack::record_sp_limit(0); }
13+
1114
MessageBoxA(0 as HWND, "text (cstr)".to_c_str().as_ptr(), "title (cstr)".to_c_str().as_ptr(), 0);
1215
MessageBoxW(0 as HWND, "text (wcstr)".to_c_wstr().as_ptr(), "title (wcstr)".to_c_wstr().as_ptr(), 0);
1316
}

0 commit comments

Comments
 (0)