Skip to content

Commit

Permalink
Revert "test/mix: Avoid wsprintf()"
Browse files Browse the repository at this point in the history
This reverts commit a3eb383.
  • Loading branch information
lhmouse committed Sep 25, 2024
1 parent 4728106 commit 688765a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/mix.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ main(void)
return 77;
#else
// load functions from dll
HMODULE pdll = LoadLibraryW(L"libmcfgthread-" __MCF_S(_MCF_ABI_VERSION_MAJOR) ".dll");
wchar_t dll_name[100];
wsprintfW(dll_name, L"libmcfgthread-%d.dll", _MCF_ABI_VERSION_MAJOR);
HMODULE pdll = LoadLibraryW(dll_name);
assert(pdll);
HMODULE mdll = LoadLibraryW(L"libmcfgthread-minimal-" __MCF_S(_MCF_ABI_VERSION_MAJOR) ".dll");
wsprintfW(dll_name, L"libmcfgthread-minimal-%d.dll", _MCF_ABI_VERSION_MAJOR);
HMODULE mdll = LoadLibraryW(dll_name);
assert(mdll);

typedef __typeof__(_MCF_tls_get) tls_get_fn;
Expand Down

0 comments on commit 688765a

Please sign in to comment.