Mercurial > pidgin.yaz
changeset 30898:31c2dd632ffa
Make wpurple_install_dir() (DATADIR) relative to the libpurple dll instead of the executable file that launched the process
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 31 Aug 2010 00:53:15 +0000 |
parents | 7be961ff3fa2 |
children | 35d8acf675e9 |
files | libpurple/win32/win32dep.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/win32/win32dep.c Tue Aug 31 00:51:41 2010 +0000 +++ b/libpurple/win32/win32dep.c Tue Aug 31 00:53:15 2010 +0000 @@ -35,7 +35,7 @@ static char *app_data_dir = NULL, *install_dir = NULL, *lib_dir = NULL, *locale_dir = NULL; -static HINSTANCE libpurpledll_hInstance = 0; +static HINSTANCE libpurpledll_hInstance = NULL; /* * PUBLIC CODE @@ -130,7 +130,7 @@ if (!initialized) { char *tmp = NULL; wchar_t winstall_dir[MAXPATHLEN]; - if (GetModuleFileNameW(NULL, winstall_dir, + if (GetModuleFileNameW(libpurpledll_hInstance, winstall_dir, MAXPATHLEN) > 0) { tmp = g_utf16_to_utf8(winstall_dir, -1, NULL, NULL, NULL);