| ... | ... | @@ -86,7 +86,7 @@ fn DllMainCRTStartup( |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | if (@hasDecl(root, "DllMain")) { |
| 89 | | return root.DllMain(hinstDLL, fdwReason, lpReserved); |
| 89 | return root.DllMain(@ptrCast(hinstDLL), fdwReason, lpReserved); |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | return .TRUE; |
| ... | ... | @@ -97,7 +97,7 @@ fn DllMain( |
| 97 | 97 | fdwReason: std.os.windows.DWORD, |
| 98 | 98 | lpReserved: std.os.windows.LPVOID, |
| 99 | 99 | ) callconv(.winapi) std.os.windows.BOOL { |
| 100 | | return root.DllMain(hinstDLL, fdwReason, lpReserved); |
| 100 | return root.DllMain(@ptrCast(hinstDLL), fdwReason, lpReserved); |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | fn wasm_freestanding_start() callconv(.c) void { |