From dad1e54c8f3d9c6228b012391112d880c201303a Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Mon, 20 May 2024 09:35:42 -0500 Subject: [PATCH] test mangling --- crates/samples/components/json_validator_client/src/client.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/samples/components/json_validator_client/src/client.cpp b/crates/samples/components/json_validator_client/src/client.cpp index 6e139d9195..26d58aaeb7 100644 --- a/crates/samples/components/json_validator_client/src/client.cpp +++ b/crates/samples/components/json_validator_client/src/client.cpp @@ -10,6 +10,8 @@ typedef HRESULT (__stdcall *ValidateJson)(uintptr_t handle, char const* value, s typedef void (__stdcall *CloseJsonValidator)(uintptr_t handle); extern "C" { + void __stdcall CoTaskMemFree(void* ptr); + void __stdcall client() { auto library = LoadLibraryExW(L"sample_component_json_validator.dll", 0, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS); assert(library != 0);