wined3d: Fix a few small bugs in WineD3D_ChoosePixelFormat.