wined3d: Avoid calling _strnicmp() with limit -1.