| ... | @@ -2733,9 +2733,9 @@ pub const HRESULT = c_long; | ... | @@ -2733,9 +2733,9 @@ pub const HRESULT = c_long; |
| 2733 | | 2733 | |
| 2734 | pub const KNOWNFOLDERID = GUID; | 2734 | pub const KNOWNFOLDERID = GUID; |
| 2735 | pub const GUID = extern struct { | 2735 | pub const GUID = extern struct { |
| 2736 | Data1: c_ulong, | 2736 | Data1: u32, |
| 2737 | Data2: c_ushort, | 2737 | Data2: u16, |
| 2738 | Data3: c_ushort, | 2738 | Data3: u16, |
| 2739 | Data4: [8]u8, | 2739 | Data4: [8]u8, |
| 2740 | | 2740 | |
| 2741 | pub fn parse(str: []const u8) GUID { | 2741 | pub fn parse(str: []const u8) GUID { |
| ... | @@ -2744,19 +2744,19 @@ pub const GUID = extern struct { | ... | @@ -2744,19 +2744,19 @@ pub const GUID = extern struct { |
| 2744 | assert(str[index] == '{'); | 2744 | assert(str[index] == '{'); |
| 2745 | index += 1; | 2745 | index += 1; |
| 2746 | | 2746 | |
| 2747 | guid.Data1 = std.fmt.parseUnsigned(c_ulong, str[index .. index + 8], 16) catch unreachable; | 2747 | guid.Data1 = std.fmt.parseUnsigned(u32, str[index .. index + 8], 16) catch unreachable; |
| 2748 | index += 8; | 2748 | index += 8; |
| 2749 | | 2749 | |
| 2750 | assert(str[index] == '-'); | 2750 | assert(str[index] == '-'); |
| 2751 | index += 1; | 2751 | index += 1; |
| 2752 | | 2752 | |
| 2753 | guid.Data2 = std.fmt.parseUnsigned(c_ushort, str[index .. index + 4], 16) catch unreachable; | 2753 | guid.Data2 = std.fmt.parseUnsigned(u16, str[index .. index + 4], 16) catch unreachable; |
| 2754 | index += 4; | 2754 | index += 4; |
| 2755 | | 2755 | |
| 2756 | assert(str[index] == '-'); | 2756 | assert(str[index] == '-'); |
| 2757 | index += 1; | 2757 | index += 1; |
| 2758 | | 2758 | |
| 2759 | guid.Data3 = std.fmt.parseUnsigned(c_ushort, str[index .. index + 4], 16) catch unreachable; | 2759 | guid.Data3 = std.fmt.parseUnsigned(u16, str[index .. index + 4], 16) catch unreachable; |
| 2760 | index += 4; | 2760 | index += 4; |
| 2761 | | 2761 | |
| 2762 | assert(str[index] == '-'); | 2762 | assert(str[index] == '-'); |