1. elykahn
  2. Sublime 2 ZenCoding

Commits

Nicholas Dudfield  committed dba3f7c

auto

  • Participants
  • Parent commits 96a8c4c
  • Branches default

Comments (0)

Files changed (1)

File zenarbitrage.py

View file
             return True
         except UnicodeEncodeError:
             buf = create_unicode_buffer(512)
-            return (windll.kernel32
-                          .GetShortPathNameW(unicode_file_name, buf, len(buf)))
+            if (windll.kernel32
+                          .GetShortPathNameW(unicode_file_name, buf, len(buf))):
+                return buf.value
+            else:
+                return False
 
 def doop():
     def do_report():