Changed paramter passing convention to work on win32 and cygwin,
Authored by: dwarren 2013-03-08
Parent: [r7737]
Child: [r7739]