pidgin/win32/winpidgin.c

changeset 29807
bda3933c6400
parent 29805
c7d28ce85db7
child 29878
623d7875f658
--- a/pidgin/win32/winpidgin.c	Thu Mar 04 04:16:49 2010 +0000
+++ b/pidgin/win32/winpidgin.c	Thu Mar 04 04:22:19 2010 +0000
@@ -188,6 +188,18 @@
 	return TRUE;
 }
 
+static BOOL dll_prep(const TCHAR *pidgin_dir) {
+	TCHAR path[MAX_PATH + 1];
+	path[0] = _T('\0');
+
+	if (*pidgin_dir) {
+		_sntprintf(path, sizeof(path) / sizeof(TCHAR), _T("%s\\Gtk\\bin"), pidgin_dir);
+		path[sizeof(path) / sizeof(TCHAR)] = _T('\0');
+	}
+
+	return common_dll_prep(path);
+}
+
 static void portable_mode_dll_prep(const TCHAR *pidgin_dir) {
 	/* need to be able to fit MAX_PATH + "PIDGIN_ASPELL_DIR=\\Aspell\\bin" in path2 */
 	TCHAR path[MAX_PATH + 1];
@@ -233,18 +245,6 @@
 	}
 }
 
-static BOOL dll_prep(const TCHAR *pidgin_dir) {
-	TCHAR path[MAX_PATH + 1];
-	path[0] = _T('\0');
-
-	if (*pidgin_dir) {
-		_sntprintf(path, sizeof(path) / sizeof(TCHAR), _T("%s\\Gtk\\bin"), pidgin_dir);
-		path[sizeof(path) / sizeof(TCHAR)] = _T('\0');
-	}
-
-	return common_dll_prep(path);
-}
-
 static TCHAR* winpidgin_lcid_to_posix(LCID lcid) {
 	TCHAR *posix = NULL;
 	int lang_id = PRIMARYLANGID(lcid);

mercurial