winsane: Pass values by reference to inner private function