diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-08-17 19:46:13 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-08-17 19:46:13 +0000 |
commit | 7bfea01e4b6fc9a764f01fa537cea3f6f61de54e (patch) | |
tree | aa643a58bb4e8875e7e4bc386f2d8e17d5153fa7 /wsutil | |
parent | 67696cbfdebd8b9578cb2863a31442c7be1c4cb6 (diff) |
From Gisle Vanem:
Patch for a missing WINAPI.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38592 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/file_util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wsutil/file_util.c b/wsutil/file_util.c index d44c30ba67..1403b0dcea 100644 --- a/wsutil/file_util.c +++ b/wsutil/file_util.c @@ -487,10 +487,11 @@ ws_init_dll_search_path() 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("")); } |