diff --git a/lib/std/start.zig b/lib/std/start.zig index 4d170c17048cfb2498349baebdd614b71e84094d..1387f0385dbf1b3dbf466514e1fbe052ef9ac4e1 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -86,7 +86,7 @@ fn DllMainCRTStartup( } if (@hasDecl(root, "DllMain")) { - return root.DllMain(hinstDLL, fdwReason, lpReserved); + return root.DllMain(@ptrCast(hinstDLL), fdwReason, lpReserved); } return .TRUE; @@ -97,7 +97,7 @@ fn DllMain( fdwReason: std.os.windows.DWORD, lpReserved: std.os.windows.LPVOID, ) callconv(.winapi) std.os.windows.BOOL { - return root.DllMain(hinstDLL, fdwReason, lpReserved); + return root.DllMain(@ptrCast(hinstDLL), fdwReason, lpReserved); } fn wasm_freestanding_start() callconv(.c) void {