Skip to content

Commit

Permalink
Rollup merge of rust-lang#21387 - retep998:hmodule, r=alexcrichton
Browse files Browse the repository at this point in the history
  • Loading branch information
barosl committed Jan 20, 2015
2 parents b958839 + b57662a commit 3d6568f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/liblibc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,8 @@ pub mod types {
pub type DWORDLONG = c_ulonglong;

pub type HANDLE = LPVOID;
pub type HMODULE = c_uint;
pub type HINSTANCE = HANDLE;
pub type HMODULE = HINSTANCE;

pub type LONG = c_long;
pub type PLONG = *mut c_long;
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/sys/windows/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ pub fn join_paths<T: BytesContainer>(paths: &[T]) -> Result<Vec<u8>, &'static st
pub fn load_self() -> Option<Vec<u8>> {
unsafe {
fill_utf16_buf_and_decode(|buf, sz| {
libc::GetModuleFileNameW(0u as libc::DWORD, buf, sz)
libc::GetModuleFileNameW(ptr::null_mut(), buf, sz)
}).map(|s| s.to_string().into_bytes())
}
}
Expand Down

0 comments on commit 3d6568f

Please sign in to comment.