fix Issue 10644 - Win64: wrong code when passing arguments through ...

fix http://d.puremagic.com/issues/show_bug.cgi?id=10644

The test cases are the unittests.