diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 61403a6feeb..43dfb731787 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -347,8 +347,7 @@ HRESULT WINAPI LoadTypeLibEx( { case REGKIND_DEFAULT: /* don't register typelibs supplied with full path. Experimentation confirms the following */ - if ((!szFile) || - ((szFile[0] == '\\') && (szFile[1] == '\\')) || + if (((szFile[0] == '\\') && (szFile[1] == '\\')) || (szFile[0] && (szFile[1] == ':'))) break; /* else fall-through */