winpr: fix crashing tests