Michael Stefaniuc : avifil32: Simplify the check for an empty string ( PVS-Studio).
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Nov 13 07:40:25 CST 2014
Module: wine
Branch: master
Commit: 4517780988c38d5c739119d93d235c78148844d9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4517780988c38d5c739119d93d235c78148844d9
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Thu Nov 13 10:08:59 2014 +0100
avifil32: Simplify the check for an empty string (PVS-Studio).
---
dlls/avifil32/avifile.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/avifil32/avifile.c b/dlls/avifil32/avifile.c
index 5b65fd0..af0315d 100644
--- a/dlls/avifil32/avifile.c
+++ b/dlls/avifil32/avifile.c
@@ -1460,7 +1460,7 @@ static DWORD AVIFILE_ComputeMoviStart(IAVIFileImpl *This)
dwPos += ((pStream->cbFormat + 1) & ~1U);
if (pStream->lpHandlerData != NULL && pStream->cbHandlerData > 0)
dwPos += 2 * sizeof(DWORD) + ((pStream->cbHandlerData + 1) & ~1U);
- if (lstrlenW(pStream->sInfo.szName) > 0)
+ if (pStream->sInfo.szName[0])
dwPos += 2 * sizeof(DWORD) + ((lstrlenW(pStream->sInfo.szName) + 1) & ~1U);
}
@@ -2219,7 +2219,7 @@ static HRESULT AVIFILE_SaveFile(IAVIFileImpl *This)
}
/* ... an optional name for this stream ... */
- if (lstrlenW(pStream->sInfo.szName) > 0) {
+ if (pStream->sInfo.szName[0]) {
LPSTR str;
ck.ckid = ckidSTREAMNAME;
More information about the wine-cvs
mailing list