| 186 } |
186 } |
| 187 |
187 |
| 188 return TRUE; |
188 return TRUE; |
| 189 } |
189 } |
| 190 |
190 |
| |
191 static BOOL dll_prep(const TCHAR *pidgin_dir) { |
| |
192 TCHAR path[MAX_PATH + 1]; |
| |
193 path[0] = _T('\0'); |
| |
194 |
| |
195 if (*pidgin_dir) { |
| |
196 _sntprintf(path, sizeof(path) / sizeof(TCHAR), _T("%s\\Gtk\\bin"), pidgin_dir); |
| |
197 path[sizeof(path) / sizeof(TCHAR)] = _T('\0'); |
| |
198 } |
| |
199 |
| |
200 return common_dll_prep(path); |
| |
201 } |
| |
202 |
| 191 static void portable_mode_dll_prep(const TCHAR *pidgin_dir) { |
203 static void portable_mode_dll_prep(const TCHAR *pidgin_dir) { |
| 192 /* need to be able to fit MAX_PATH + "PIDGIN_ASPELL_DIR=\\Aspell\\bin" in path2 */ |
204 /* need to be able to fit MAX_PATH + "PIDGIN_ASPELL_DIR=\\Aspell\\bin" in path2 */ |
| 193 TCHAR path[MAX_PATH + 1]; |
205 TCHAR path[MAX_PATH + 1]; |
| 194 TCHAR path2[MAX_PATH + 33]; |
206 TCHAR path2[MAX_PATH + 33]; |
| 195 const TCHAR *prev = NULL; |
207 const TCHAR *prev = NULL; |
| 229 if (!dll_prep(pidgin_dir)) { |
241 if (!dll_prep(pidgin_dir)) { |
| 230 /* set the GTK+ path to be \\path\to\GTK\bin */ |
242 /* set the GTK+ path to be \\path\to\GTK\bin */ |
| 231 _tcscat(path, _T("\\GTK\\bin")); |
243 _tcscat(path, _T("\\GTK\\bin")); |
| 232 common_dll_prep(path); |
244 common_dll_prep(path); |
| 233 } |
245 } |
| 234 } |
|
| 235 |
|
| 236 static BOOL dll_prep(const TCHAR *pidgin_dir) { |
|
| 237 TCHAR path[MAX_PATH + 1]; |
|
| 238 path[0] = _T('\0'); |
|
| 239 |
|
| 240 if (*pidgin_dir) { |
|
| 241 _sntprintf(path, sizeof(path) / sizeof(TCHAR), _T("%s\\Gtk\\bin"), pidgin_dir); |
|
| 242 path[sizeof(path) / sizeof(TCHAR)] = _T('\0'); |
|
| 243 } |
|
| 244 |
|
| 245 return common_dll_prep(path); |
|
| 246 } |
246 } |
| 247 |
247 |
| 248 static TCHAR* winpidgin_lcid_to_posix(LCID lcid) { |
248 static TCHAR* winpidgin_lcid_to_posix(LCID lcid) { |
| 249 TCHAR *posix = NULL; |
249 TCHAR *posix = NULL; |
| 250 int lang_id = PRIMARYLANGID(lcid); |
250 int lang_id = PRIMARYLANGID(lcid); |