Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.78 KB | None | 0 0
  1. Index: gfile-win32.c
  2. ===================================================================
  3. --- gfile-win32.c   (revision 157066)
  4. +++ gfile-win32.c   (working copy)
  5. @@ -77,10 +77,10 @@
  6.         return FALSE;
  7.  
  8.     utf16_filename = u8to16 (filename);
  9. -   attr = GetFileAttributesW (filename);
  10. +   attr = GetFileAttributesW (utf16_filename);
  11.     g_free (utf16_filename);
  12.    
  13. -   if (ret == INVALID_FILE_ATTRIBUTES)
  14. +   if (attr == INVALID_FILE_ATTRIBUTES)
  15.         return FALSE;
  16.  
  17.     if ((test & G_FILE_TEST_EXISTS) != 0) {
  18. @@ -88,8 +88,8 @@
  19.     }
  20.  
  21.     if ((test & G_FILE_TEST_IS_EXECUTABLE) != 0) {
  22. -       int len = strlen (filename);
  23. -       if (len > 4 && strcmp (filename + len-3, "exe")
  24. +       size_t len = strlen (filename);
  25. +       if (len > 4 && strcmp (filename + len-3, "exe"))
  26.             return TRUE;
  27.            
  28.         return FALSE;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement