Wireshark mailing list archives
[Patch] wsutil/file_util.c
From: Gisle Vanem <gvanem () broadpark no>
Date: Wed, 17 Aug 2011 21:40:15 +0200
Here is another patch for a missing WINAPI: --- SVN-Latest\wsutil\file_util.c Mon Jul 18 21:40:32 2011 +++ wsutil\file_util.c Wed Aug 17 21:36:27 2011 @@ -487,10 +487,11 @@ gboolean dll_dir_set = FALSE; wchar_t *program_path_w; - typedef BOOL (*SetDllDirectoryHandler)(LPCTSTR); + typedef BOOL (WINAPI *SetDllDirectoryHandler)(LPCTSTR); SetDllDirectoryHandler PSetDllDirectory; - if (PSetDllDirectory = (SetDllDirectoryHandler) GetProcAddress(GetModuleHandle(_T("kernel32.dll")), "SetDllDirectoryW")) { + PSetDllDirectory = (SetDllDirectoryHandler) GetProcAddress(GetModuleHandle(_T("kernel32.dll")), "SetDllDirectoryW"); + if (PSetDllDirectory) { dll_dir_set = PSetDllDirectory(_T("")); } ------------- --gv ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- [Patch] wsutil/file_util.c Gisle Vanem (Aug 17)
- Re: [Patch] wsutil/file_util.c Stig Bjørlykke (Aug 17)