mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
auto merge of #13567 : iancormac84/rust/libc_windows_guid_fix, r=alexcrichton
structure's Data2 and Data3 members expect WORD types instead of DWORD. I discovered this discrepancy while experimenting with some bindings to Microsoft's OLE2 api. The discrepancy was corrupting the contents of the string returned by UuidToString after I used known GUIDs to test the accuracy of the function binding. I didn't add test cases because it would mean adding a dependency to my rather incomplete binding library. However, the fix produces expected string values when tested.
This commit is contained in:
commit
1fd7de8246
@ -1221,8 +1221,8 @@ pub mod types {
|
|||||||
|
|
||||||
pub struct GUID {
|
pub struct GUID {
|
||||||
pub Data1: DWORD,
|
pub Data1: DWORD,
|
||||||
pub Data2: DWORD,
|
pub Data2: WORD,
|
||||||
pub Data3: DWORD,
|
pub Data3: WORD,
|
||||||
pub Data4: [BYTE, ..8],
|
pub Data4: [BYTE, ..8],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user