diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c
index 9d245c3bf07..13abe9bcb62 100644
--- a/dlls/mshtml/nsio.c
+++ b/dlls/mshtml/nsio.c
@@ -1528,7 +1528,7 @@ static nsresult NSAPI nsURI_GetAsciiSpec(nsIWineURI *iface, nsACString *aAsciiSp
TRACE("(%p)->(%p)\n", This, aAsciiSpec);
- if(This->wine_url)
+ if(This->use_wine_url)
return nsIURI_GetSpec(NSURI(This), aAsciiSpec);
if(This->uri)