Mike McCormack : oleaut32: Remove unnecessary check for NULL.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Apr 7 05:04:41 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: e0276035a4b6bef1a9020e9f27225edadb318cdb
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=e0276035a4b6bef1a9020e9f27225edadb318cdb
Author: Mike McCormack <mike at codeweavers.com>
Date: Fri Apr 7 16:28:05 2006 +0900
oleaut32: Remove unnecessary check for NULL.
---
dlls/oleaut32/typelib.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index 61403a6..43dfb73 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 */
More information about the wine-cvs
mailing list