Remove C99isms. (#416525, Kazuki Iwamoto)

2007-03-09  Matthias Clasen <mclasen@redhat.com>

        * gtk/gtkfilesystemwin32.c (get_icon_path): Remove
        C99isms.  (#416525, Kazuki Iwamoto)



svn path=/trunk/; revision=17442
This commit is contained in:
Matthias Clasen
2007-03-09 21:30:32 +00:00
committed by Matthias Clasen
parent ccc9e3ba27
commit a1e4554462
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-03-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystemwin32.c (get_icon_path): Remove
C99isms. (#416525, Kazuki Iwamoto)
2007-03-09 Tor Lillqvist <tml@novell.com>
* README.win32: Update.

View File

@ -1401,14 +1401,13 @@ get_icon_path (const gchar *filename,
gint *index)
{
gchar *path = NULL;
SHFILEINFOW shfi;
wchar_t *wfn;
g_return_val_if_fail (NULL != filename, NULL);
g_return_val_if_fail ('\0' != *filename, NULL);
g_return_val_if_fail (NULL != index, NULL);
SHFILEINFOW shfi;
wchar_t *wfn;
wfn = g_utf8_to_utf16 (filename, -1, NULL, NULL, NULL);
if (SHGetFileInfoW (wfn, 0, &shfi, sizeof (shfi), SHGFI_ICONLOCATION))