]> git.lizzy.rs Git - rust.git/commit
This is a Windows specific fix in libc. According to MSDN, the GUID
authoriancormac84 <wilnathan@gmail.com>
Wed, 16 Apr 2014 19:43:17 +0000 (15:43 -0400)
committeriancormac84 <wilnathan@gmail.com>
Wed, 16 Apr 2014 19:43:17 +0000 (15:43 -0400)
commitfc4c6ee462943fb7c8da76ac3ab648458a1a5b66
treef9a64423d0d2d3afd61452b408e5b6ccc494f0b8
parentbfaf171c6dff38faecf4de29abcedc6a128c4cec
This is a Windows specific fix in libc. According to MSDN, the GUID
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.
src/liblibc/lib.rs