Skip to content

Commit 3d6568f

Browse files
committed
Rollup merge of rust-lang#21387 - retep998:hmodule, r=alexcrichton
r? @alexcrichton
2 parents b958839 + b57662a commit 3d6568f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: src/liblibc/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,8 @@ pub mod types {
15411541
pub type DWORDLONG = c_ulonglong;
15421542

15431543
pub type HANDLE = LPVOID;
1544-
pub type HMODULE = c_uint;
1544+
pub type HINSTANCE = HANDLE;
1545+
pub type HMODULE = HINSTANCE;
15451546

15461547
pub type LONG = c_long;
15471548
pub type PLONG = *mut c_long;

Diff for: src/libstd/sys/windows/os.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ pub fn join_paths<T: BytesContainer>(paths: &[T]) -> Result<Vec<u8>, &'static st
281281
pub fn load_self() -> Option<Vec<u8>> {
282282
unsafe {
283283
fill_utf16_buf_and_decode(|buf, sz| {
284-
libc::GetModuleFileNameW(0u as libc::DWORD, buf, sz)
284+
libc::GetModuleFileNameW(ptr::null_mut(), buf, sz)
285285
}).map(|s| s.to_string().into_bytes())
286286
}
287287
}

0 commit comments

Comments
 (0)