Marcus Meissner : wined3d: Fix possible buffer overflow.