Enable parsing of vendor strings not matching the expected template.
authorJason Edmeades <us@the-edmeades.demon.co.uk>
Wed, 23 Feb 2005 12:42:04 +0000 (12:42 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 23 Feb 2005 12:42:04 +0000 (12:42 +0000)
dlls/wined3d/directx.c

index 0da0751a5cb13efffdbc912a81b027da3b917c5a..7019cf089291489d66609a6e88b2dec82e2abe24 100644 (file)
@@ -213,8 +213,9 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info, Display* display)
     case VENDOR_ATI:
         major = minor = 0;
         gl_string_cursor = strchr(gl_string, '-');
-        if (gl_string_cursor++) {
+        if (gl_string_cursor) {
             int error = 0;
+            gl_string_cursor++;
 
             /* Check if version number is of the form x.y.z */
             if (*gl_string_cursor > '9' && *gl_string_cursor < '0')