Fix windows failure (fixup )

This commit is contained in:
Manish Goregaokar 2015-02-24 00:49:50 +05:30 committed by Alex Crichton
parent d6d33770da
commit 1beaebbaa6
2 changed files with 2 additions and 2 deletions
src/libstd/sys/windows

@ -11,7 +11,6 @@
use prelude::v1::*;
use boxed;
use boxed::Box;
use cmp;
use io;
use mem;

@ -12,6 +12,7 @@ use prelude::v1::*;
use libc::types::os::arch::extra::{DWORD, LPVOID, BOOL};
use boxed;
use mem;
use ptr;
use rt;
@ -139,7 +140,7 @@ unsafe fn init_dtors() {
DTOR_LOCK.lock();
let dtors = DTORS;
DTORS = ptr::null_mut();
Boxed::from_raw(dtors);
Box::from_raw(dtors);
assert!(DTORS.is_null()); // can't re-init after destructing
DTOR_LOCK.unlock();
});