Adapt processinvalid test for win32. #790