From bbf66ee2bed3eeac7b4fc072ddd02f39751d9570 Mon Sep 17 00:00:00 2001 From: Zack Radisic <56137411+zackradisic@users.noreply.github.com> Date: Tue, 3 Dec 2024 16:12:50 -0800 Subject: [PATCH] Fix cpp compile on windows --- src/bun.js/bindings/JSBundlerPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bun.js/bindings/JSBundlerPlugin.cpp b/src/bun.js/bindings/JSBundlerPlugin.cpp index 49154e3198..6b3ce2af3b 100644 --- a/src/bun.js/bindings/JSBundlerPlugin.cpp +++ b/src/bun.js/bindings/JSBundlerPlugin.cpp @@ -370,7 +370,7 @@ JSC_DEFINE_HOST_FUNCTION(jsBundlerPluginFunction_onBeforeParse, (JSC::JSGlobalOb #if OS(WINDOWS) BunString onbefore_parse_symbol_str = Bun::toString(on_before_parse_symbol); - void* on_before_parse_symbol_ptr = GetProcAddress(&onbefore_parse_symbol_str); + void* on_before_parse_symbol_ptr = GetProcAddress(dlopen_handle, &onbefore_parse_symbol_str); #else CString utf8 = on_before_parse_symbol.utf8(); void* on_before_parse_symbol_ptr = dlsym(dlopen_handle, utf8.data());