Weird, but everyone seems really to use own parser for splitting of command line parameters. The tests are good (and this PR is then wrong), if one tries it with a small [test-cltaw.exe](https://github.com/sebres/PoC/raw/master/SB-0D-001-win-exec/test-cltaw.exe) (from [test-cltaw.c](https://github.com/sebres/PoC/blob/master/SB-0D-001-win-exec/test-cltaw.c)) using `CommandLineToArgvW` on windows. Exactly in the same way it does with [test-dump.exe](https://github.com/sebres/PoC/raw/master/SB-0D-001-win-exec/test-dump.exe) using `args/argv` pair from `main`, but...
But it completely deviates from `python`, `tcl`, whatever script lang, that seem to use own command line parser for arguments if built for windows (and then the PR would be correct).
<details><summary>Here is small table illustrating the issue...</summary>
<table> <tr><th rowspan="2">command line</th><th colspan="4">CommandLineToArgvW / main</th><th colspan="4">python, tcl, etc</th></tr> <tr><th>C</th><th>A1</th><th>A2</th><th>A3</th><th>C</th><th>A1</th><th>A2</th><th>A3</th></tr> <tr><td>three"""quotes next</td><td>2</td><td>three"quotes</td><td>next</td><td></td> <td>1</td><td>three"quotes next</td><td></td><td></tr> <tr><td>four"""" quotes" next 4%3=1</td><td>3</td><td>four" quotes</td><td>next</td><td>4%3=1</td> <td>2</td><td>four"</td><td>quotes next 4%3=1</td><td></tr> <tr><td>five"""""quotes next</td><td>2</td><td>five"quotes</td><td>next</td><td></td> <td>1</td><td>five""quotes next</td><td></td><td></tr> <tr><td>seven""""""" quotes" next 7%3=1</td><td>3</td><td>seven"" quotes</td><td>next</td><td>7%3=1</td> <td>3</td><td>seven""" quotes</td><td>next</td><td>7%3=1</tr> <tr><td>twelve""""""""""""quotes next</td><td>2</td><td>twelve""""quotes</td><td>next</td><td></td> <td>2</td><td>twelve"""""quotes</td><td>next</td><td></tr> <tr><td>thirteen""""""""""""" quotes" next 13%3=1</td><td>3</td><td>thirteen"""" quotes</td><td>next</td><td>13%3=1</td> <td>3</td><td>thirteen"""""" quotes</td><td>next</td><td>13%3=1</tr> <tr><td>"two""quotes next</td><td>2</td><td>two"quotes</td><td>next</td><td></td> <td>1</td><td>two"quotes next</td><td></td><td></tr> <tr><td>"two"" next</td><td>2</td><td>two"</td><td>next</td><td></td> <td>1</td><td>two" next</td><td></td><td></tr> <tr><td>"three""" quotes" next 4%3=1</td><td>3</td><td>three" quotes</td><td>next</td><td>4%3=1</td> <td>2</td><td>three"</td><td>quotes next 4%3=1</td><td></tr> <tr><td>"four""""quotes next</td><td>2</td><td>four"quotes</td><td>next</td><td></td> <td>1</td><td>four""quotes next</td><td></td><td></tr> <tr><td>"six"""""" quotes" next 7%3=1</td><td>3</td><td>six"" quotes</td><td>next</td><td>7%3=1</td> <td>3</td><td>six""" quotes</td><td>next</td><td>7%3=1</tr> <tr><td>"eleven"""""""""""quotes next</td><td>2</td><td>eleven""""quotes</td><td>next</td><td></td> <td>2</td><td>eleven"""""quotes</td><td>next |</tr> <tr><td>"twelve"""""""""""" quotes" next 13%3=1</td><td>3</td><td>twelve"""" quotes</td><td>next</td><td>13%3=1</td> <td>3</td><td>twelve"""""" quotes</td><td>next</td><td>13%3=1</tr> <tr><td>"the crazy \"""\" quotes</td><td>2</td><td>the crazy "</td><td>quotes</td><td></td> <td>1</td><td>the crazy " quotes</td><td></td><td></tr> </table> </details>
Just since it is supposed to be a fix for `CommandLineToArgvW` (to behave more similar on windows), I'll close it now (and gonna open few PRs for the mentioned langs for windows).
Thus closed, sorry for noise.