Commit b4a5a4e4 authored by Tor Lillqvist's avatar Tor Lillqvist
Browse files

Drop Win9x code path from libglade, too.

parent 67d440bf
2009-05-29 Tor Lillqvist <tml@novell.com>
* glade/glade-init.c (get_libdir): Drop Win9x codepath here, too.
2009-03-17 Vincent Untz <vuntz@gnome.org>
* configure.in: post-release bump to 2.6.5
......
......@@ -74,6 +74,7 @@ replace_prefix (const char *runtime_prefix,
static const char *
get_libdir (void)
{
wchar_t wcbfr[1000];
static const char *libdir = NULL;
char *prefix = NULL;
......@@ -84,18 +85,9 @@ get_libdir (void)
}
if (GetVersion () < 0x80000000) {
wchar_t wcbfr[1000];
if (GetModuleFileNameW (hmodule, wcbfr,
G_N_ELEMENTS (wcbfr))) {
prefix = g_utf16_to_utf8 (wcbfr, -1, NULL, NULL, NULL);
}
} else {
char cpbfr[1000];
if (GetModuleFileNameA (hmodule, cpbfr, G_N_ELEMENTS (cpbfr)))
prefix = g_locale_to_utf8 (cpbfr, -1, NULL, NULL, NULL);
}
if (GetModuleFileNameW (hmodule, wcbfr,
G_N_ELEMENTS (wcbfr)))
prefix = g_utf16_to_utf8 (wcbfr, -1, NULL, NULL, NULL);
if (prefix != NULL) {
char *p = strrchr (prefix, '\\');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment