Show More
@@ -8,6 +8,7 b'' | |||
|
8 | 8 | from __future__ import absolute_import |
|
9 | 9 | |
|
10 | 10 | import ctypes |
|
11 | import ctypes.wintypes as wintypes | |
|
11 | 12 | import errno |
|
12 | 13 | import msvcrt |
|
13 | 14 | import os |
@@ -33,6 +34,7 b' from . import (' | |||
|
33 | 34 | _HANDLE = ctypes.c_void_p |
|
34 | 35 | _HWND = _HANDLE |
|
35 | 36 | _PCCERT_CONTEXT = ctypes.c_void_p |
|
37 | _MAX_PATH = wintypes.MAX_PATH | |
|
36 | 38 | |
|
37 | 39 | _INVALID_HANDLE_VALUE = _HANDLE(-1).value |
|
38 | 40 | |
@@ -460,7 +462,7 b' def getfstype(path):' | |||
|
460 | 462 | _DRIVE_RAMDISK): |
|
461 | 463 | return None |
|
462 | 464 | |
|
463 | size = 256 | |
|
465 | size = _MAX_PATH + 1 | |
|
464 | 466 | name = ctypes.create_string_buffer(size) |
|
465 | 467 | |
|
466 | 468 | if not _kernel32.GetVolumeInformationA(volume, None, 0, None, None, None, |
General Comments 0
You need to be logged in to leave comments.
Login now