mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
Do not mix declarations with code.
https://bugzilla.gnome.org/show_bug.cgi?id=781298
This commit is contained in:
parent
c192595268
commit
7641cf29e3
@ -317,6 +317,11 @@ gboolean
|
||||
g_file_test (const gchar *filename,
|
||||
GFileTest test)
|
||||
{
|
||||
#ifdef G_OS_WIN32
|
||||
int attributes;
|
||||
wchar_t *wfilename;
|
||||
#endif
|
||||
|
||||
g_return_val_if_fail (filename != NULL, FALSE);
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
@ -327,8 +332,7 @@ g_file_test (const gchar *filename,
|
||||
# ifndef FILE_ATTRIBUTE_DEVICE
|
||||
# define FILE_ATTRIBUTE_DEVICE 64
|
||||
# endif
|
||||
int attributes;
|
||||
wchar_t *wfilename = g_utf8_to_utf16 (filename, -1, NULL, NULL, NULL);
|
||||
wfilename = g_utf8_to_utf16 (filename, -1, NULL, NULL, NULL);
|
||||
|
||||
if (wfilename == NULL)
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user