gconf r2747 - in branches/gnome-2-22: . gconf
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: gconf r2747 - in branches/gnome-2-22: . gconf
- Date: Tue, 27 Jan 2009 15:48:58 +0000 (UTC)
Author: tml
Date: Tue Jan 27 15:48:58 2009
New Revision: 2747
URL: http://svn.gnome.org/viewvc/gconf?rev=2747&view=rev
Log:
2009-01-27 Tor Lillqvist <tml novell com>
Merge from trunk:
* gconf/dllmain.c (setup): Drop the Win9x code path. There is no
Win9x support any more lower in the stack anyway.
Modified:
branches/gnome-2-22/ChangeLog
branches/gnome-2-22/gconf/dllmain.c
Modified: branches/gnome-2-22/gconf/dllmain.c
==============================================================================
--- branches/gnome-2-22/gconf/dllmain.c (original)
+++ branches/gnome-2-22/gconf/dllmain.c Tue Jan 27 15:48:58 2009
@@ -68,11 +68,10 @@
static void
setup (void)
{
- char *full_prefix;
+ char *full_prefix = NULL;
char *cp_prefix;
wchar_t wcbfr[1000];
- char cpbfr[1000];
G_LOCK (mutex);
if (locale_dir != NULL)
@@ -81,26 +80,13 @@
return;
}
- if (G_WIN32_HAVE_WIDECHAR_API ())
+ if (GetModuleFileNameW (hmodule, wcbfr, G_N_ELEMENTS (wcbfr)))
{
- /* NT-based Windows has wide char API */
- if (GetModuleFileNameW (hmodule, wcbfr, G_N_ELEMENTS (wcbfr)))
- {
- full_prefix = g_utf16_to_utf8 (wcbfr, -1, NULL, NULL, NULL);
- if (GetShortPathNameW (wcbfr, wcbfr, G_N_ELEMENTS (wcbfr)))
- cp_prefix = g_utf16_to_utf8 (wcbfr, -1, NULL, NULL, NULL);
- else if (full_prefix)
- cp_prefix = g_locale_from_utf8 (full_prefix, -1, NULL, NULL, NULL);
- }
- }
- else
- {
- /* Win9x */
- if (GetModuleFileNameA (hmodule, cpbfr, G_N_ELEMENTS (cpbfr)))
- {
- full_prefix = g_locale_to_utf8 (cpbfr, -1, NULL, NULL, NULL);
- cp_prefix = g_strdup (cpbfr);
- }
+ full_prefix = g_utf16_to_utf8 (wcbfr, -1, NULL, NULL, NULL);
+ if (GetShortPathNameW (wcbfr, wcbfr, G_N_ELEMENTS (wcbfr)))
+ cp_prefix = g_utf16_to_utf8 (wcbfr, -1, NULL, NULL, NULL);
+ else if (full_prefix)
+ cp_prefix = g_locale_from_utf8 (full_prefix, -1, NULL, NULL, NULL);
}
if (full_prefix != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]