Parcourir la source

HRESULT_FROM_WIN32 correction

Vincent Billet il y a 3 mois
Parent
commit
9b7bb9290e
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      core/sys/windows/winerror.odin
  2. 1 1
      core/sys/windows/winmm.odin

+ 1 - 1
core/sys/windows/winerror.odin

@@ -275,7 +275,7 @@ MAKE_HRESULT :: #force_inline proc "contextless" (#any_int sev: int, #any_int fa
 }
 }
 
 
 HRESULT_FROM_WIN32 :: #force_inline proc "contextless" (#any_int code: int) -> HRESULT {
 HRESULT_FROM_WIN32 :: #force_inline proc "contextless" (#any_int code: int) -> HRESULT {
-	return HRESULT(code) <= 0 ? HRESULT(code) : HRESULT((code & 0x0000FFFF) | (int(FACILITY.WIN32) << 16) | 0x80000000)
+	return HRESULT(code) <= 0 ? HRESULT(code) : HRESULT(uint(code & 0x0000FFFF) | (uint(FACILITY.WIN32) << 16) | 0x80000000)
 }
 }
 
 
 DECODE_HRESULT :: #force_inline proc "contextless" (#any_int hr: int) -> (SEVERITY, FACILITY, int) {
 DECODE_HRESULT :: #force_inline proc "contextless" (#any_int hr: int) -> (SEVERITY, FACILITY, int) {

+ 1 - 1
core/sys/windows/winmm.odin

@@ -610,7 +610,7 @@ WAVEFORMATEXTENSIBLE :: struct {
 		wSamplesPerBlock:    WORD,      /* valid if wBitsPerSample==0 */
 		wSamplesPerBlock:    WORD,      /* valid if wBitsPerSample==0 */
 		wReserved:           WORD,      /* If neither applies, set to zero. */
 		wReserved:           WORD,      /* If neither applies, set to zero. */
 	},
 	},
-	dwChannelMask: SPEAKER_FLAGS,           /* which channels are present in stream  */
+	dwChannelMask: SPEAKER_FLAGS,       /* which channels are present in stream  */
 	SubFormat:     GUID,
 	SubFormat:     GUID,
 }
 }