diff --git a/dlls/d3dxof/parsing.c b/dlls/d3dxof/parsing.c
index dcef96bc61385647c3f44a17ce0e3429c5b2d125..0acb7d64be12d0b77c3518e0cacf2f8131ec2acc 100644
--- a/dlls/d3dxof/parsing.c
+++ b/dlls/d3dxof/parsing.c
@@ -475,7 +475,7 @@ static BOOL is_string(parse_buffer* buf)
   if (*buf->buffer != '"')
     return FALSE;
 
-  while (!is_separator(c = *(buf->buffer+pos+1)) && (pos < 99))
+  while (!is_operator(c = *(buf->buffer+pos+1)) && (pos < 99))
   {
     if (c == '"')
     {