浏览代码

Fix typo `_beginthreadx` -> `_beginthreadex`

gingerBill 3 月之前
父节点
当前提交
e36db15b48
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      vendor/sdl3/sdl3_thread.odin

+ 2 - 2
vendor/sdl3/sdl3_thread.odin

@@ -49,7 +49,7 @@ PROP_THREAD_CREATE_STACKSIZE_NUMBER       :: "SDL.thread.create.stacksize"
 BeginThreadFunction :: proc "c" () -> FunctionPointer {
 BeginThreadFunction :: proc "c" () -> FunctionPointer {
 	when ODIN_OS == .Windows {
 	when ODIN_OS == .Windows {
 		foreign {
 		foreign {
-			_beginthreadx :: proc "c" (
+			_beginthreadex :: proc "c" (
 			        security: rawptr,
 			        security: rawptr,
 			        stack_size: c.uint,
 			        stack_size: c.uint,
 				start_address: proc "c" (rawptr),
 				start_address: proc "c" (rawptr),
@@ -58,7 +58,7 @@ BeginThreadFunction :: proc "c" () -> FunctionPointer {
 				thraddr: ^c.uint,
 				thraddr: ^c.uint,
 			) -> uintptr ---
 			) -> uintptr ---
 		}
 		}
-		return FunctionPointer(_beginthreadx)
+		return FunctionPointer(_beginthreadex)
 	} else {
 	} else {
 		return nil
 		return nil
 	}
 	}