diff options
| -rw-r--r-- | platform_utils_win32.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform_utils_win32.py b/platform_utils_win32.py index b5c21fe0..e20755a4 100644 --- a/platform_utils_win32.py +++ b/platform_utils_win32.py | |||
| @@ -180,7 +180,7 @@ def readlink(path): | |||
| 180 | if reparse_point_handle == INVALID_HANDLE_VALUE: | 180 | if reparse_point_handle == INVALID_HANDLE_VALUE: |
| 181 | _raise_winerror( | 181 | _raise_winerror( |
| 182 | get_last_error(), | 182 | get_last_error(), |
| 183 | 'Error opening symblic link \"%s\"'.format(path)) | 183 | 'Error opening symbolic link \"%s\"'.format(path)) |
| 184 | target_buffer = c_buffer(MAXIMUM_REPARSE_DATA_BUFFER_SIZE) | 184 | target_buffer = c_buffer(MAXIMUM_REPARSE_DATA_BUFFER_SIZE) |
| 185 | n_bytes_returned = DWORD() | 185 | n_bytes_returned = DWORD() |
| 186 | io_result = DeviceIoControl(reparse_point_handle, | 186 | io_result = DeviceIoControl(reparse_point_handle, |
| @@ -195,7 +195,7 @@ def readlink(path): | |||
| 195 | if not io_result: | 195 | if not io_result: |
| 196 | _raise_winerror( | 196 | _raise_winerror( |
| 197 | get_last_error(), | 197 | get_last_error(), |
| 198 | 'Error reading symblic link \"%s\"'.format(path)) | 198 | 'Error reading symbolic link \"%s\"'.format(path)) |
| 199 | rdb = REPARSE_DATA_BUFFER.from_buffer(target_buffer) | 199 | rdb = REPARSE_DATA_BUFFER.from_buffer(target_buffer) |
| 200 | if rdb.ReparseTag == IO_REPARSE_TAG_SYMLINK: | 200 | if rdb.ReparseTag == IO_REPARSE_TAG_SYMLINK: |
| 201 | return _preserve_encoding(path, rdb.SymbolicLinkReparseBuffer.PrintName) | 201 | return _preserve_encoding(path, rdb.SymbolicLinkReparseBuffer.PrintName) |
| @@ -204,7 +204,7 @@ def readlink(path): | |||
| 204 | # Unsupported reparse point type | 204 | # Unsupported reparse point type |
| 205 | _raise_winerror( | 205 | _raise_winerror( |
| 206 | ERROR_NOT_SUPPORTED, | 206 | ERROR_NOT_SUPPORTED, |
| 207 | 'Error reading symblic link \"%s\"'.format(path)) | 207 | 'Error reading symbolic link \"%s\"'.format(path)) |
| 208 | 208 | ||
| 209 | 209 | ||
| 210 | def _preserve_encoding(source, target): | 210 | def _preserve_encoding(source, target): |
