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