Show More
@@ -190,6 +190,7 try: | |||
|
190 | 190 | return py_arg_split(commandline, posix=posix, strict=strict) |
|
191 | 191 | argvn = c_int() |
|
192 | 192 | result_pointer = CommandLineToArgvW(commandline.lstrip(), ctypes.byref(argvn)) |
|
193 | try: | |
|
193 | 194 | result_array_type = LPCWSTR * argvn.value |
|
194 | 195 | result = [ |
|
195 | 196 | arg |
@@ -198,6 +199,7 try: | |||
|
198 | 199 | ) |
|
199 | 200 | if arg is not None |
|
200 | 201 | ] |
|
202 | finally: | |
|
201 | 203 | # for side effects |
|
202 | 204 | _ = LocalFree(result_pointer) |
|
203 | 205 | return result |
General Comments 0
You need to be logged in to leave comments.
Login now