aboutsummaryrefslogtreecommitdiff
path: root/core/sys
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-07-28 22:58:56 +0100
committergingerBill <bill@gingerbill.org>2019-07-28 22:58:56 +0100
commit2c5c8192f8fcb40fdef183c25a8d799f23f23439 (patch)
treebc2baa8d13741dd8f7e56d5f770c091e6b9beaf2 /core/sys
parent162c87b1b810770f75920a51682a8f6b63adeba4 (diff)
Fix parsing for procedure literals expression statements; improve assert performance; other minor fixes
Diffstat (limited to 'core/sys')
-rw-r--r--core/sys/win32/kernel32.odin2
-rw-r--r--core/sys/win32/user32.odin2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/sys/win32/kernel32.odin b/core/sys/win32/kernel32.odin
index 036fc016a..f647ab7e0 100644
--- a/core/sys/win32/kernel32.odin
+++ b/core/sys/win32/kernel32.odin
@@ -23,7 +23,7 @@ foreign kernel32 {
@(link_name="GetModuleFileNameA") get_module_file_name_a :: proc(module: Hmodule, filename: cstring, size: u32) -> u32 ---;
@(link_name="GetModuleFileNameW") get_module_file_name_w :: proc(module: Hmodule, filename: Wstring, size: u32) -> u32 ---;
- @(link_name="Sleep") sleep :: proc(ms: i32) -> i32 ---;
+ @(link_name="Sleep") sleep :: proc(ms: u32) ---;
@(link_name="QueryPerformanceFrequency") query_performance_frequency :: proc(result: ^i64) -> i32 ---;
@(link_name="QueryPerformanceCounter") query_performance_counter :: proc(result: ^i64) -> i32 ---;
@(link_name="OutputDebugStringA") output_debug_string_a :: proc(c_str: cstring) ---;
diff --git a/core/sys/win32/user32.odin b/core/sys/win32/user32.odin
index b8969faf3..5165d9389 100644
--- a/core/sys/win32/user32.odin
+++ b/core/sys/win32/user32.odin
@@ -182,7 +182,7 @@ foreign user32 {
@(link_name="DestroyIcon") destroy_icon :: proc(icon: Hicon) -> Bool ---;
@(link_name="LoadCursorA") load_cursor_a :: proc(instance: Hinstance, cursor_name: cstring) -> Hcursor ---;
- @(link_name="LoadCursorW") load_cursor_w :: proc(instance: Hinstance, cursor_name: cstring) -> Hcursor ---;
+ @(link_name="LoadCursorW") load_cursor_w :: proc(instance: Hinstance, cursor_name: Wstring) -> Hcursor ---;
@(link_name="GetCursor") get_cursor :: proc() -> Hcursor ---;
@(link_name="SetCursor") set_cursor :: proc(cursor: Hcursor) -> Hcursor ---;