Commit c818a4e6 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Fix "empty body in an if/else-statement" warnings.

parent 6dc30918
...@@ -888,7 +888,7 @@ static int TIME_GetTimeZoneInfoFromReg(RTL_TIME_ZONE_INFORMATION *tzinfo) ...@@ -888,7 +888,7 @@ static int TIME_GetTimeZoneInfoFromReg(RTL_TIME_ZONE_INFORMATION *tzinfo)
if (!NtQueryValueKey( hkey, &nameW, KeyValuePartialInformation, KpInfo,\ if (!NtQueryValueKey( hkey, &nameW, KeyValuePartialInformation, KpInfo,\
sizeof(buf), &size )) { \ sizeof(buf), &size )) { \
if( size >= (sizeof((tofield)) + \ if( size >= (sizeof((tofield)) + \
offsetof(KEY_VALUE_PARTIAL_INFORMATION,Data))); { \ offsetof(KEY_VALUE_PARTIAL_INFORMATION,Data))) { \
memcpy(&(tofield), \ memcpy(&(tofield), \
KpInfo->Data, sizeof(tofield)); \ KpInfo->Data, sizeof(tofield)); \
} \ } \
......
...@@ -3687,16 +3687,25 @@ static HRESULT WINAPI ITypeLib2_fnGetDocumentation( ...@@ -3687,16 +3687,25 @@ static HRESULT WINAPI ITypeLib2_fnGetDocumentation(
if(pBstrName) if(pBstrName)
{ {
if (This->Name) if (This->Name)
if(!(*pBstrName = SysAllocString(This->Name))) goto memerr1;else; {
if(!(*pBstrName = SysAllocString(This->Name)))
goto memerr1;
}
else else
*pBstrName = NULL; *pBstrName = NULL;
} }
if(pBstrDocString) if(pBstrDocString)
{ {
if (This->DocString) if (This->DocString)
if(!(*pBstrDocString = SysAllocString(This->DocString))) goto memerr2;else; {
if(!(*pBstrDocString = SysAllocString(This->DocString)))
goto memerr2;
}
else if (This->Name) else if (This->Name)
if(!(*pBstrDocString = SysAllocString(This->Name))) goto memerr2;else; {
if(!(*pBstrDocString = SysAllocString(This->Name)))
goto memerr2;
}
else else
*pBstrDocString = NULL; *pBstrDocString = NULL;
} }
...@@ -3707,7 +3716,10 @@ static HRESULT WINAPI ITypeLib2_fnGetDocumentation( ...@@ -3707,7 +3716,10 @@ static HRESULT WINAPI ITypeLib2_fnGetDocumentation(
if(pBstrHelpFile) if(pBstrHelpFile)
{ {
if (This->HelpFile) if (This->HelpFile)
if(!(*pBstrHelpFile = SysAllocString(This->HelpFile))) goto memerr3;else; {
if(!(*pBstrHelpFile = SysAllocString(This->HelpFile)))
goto memerr3;
}
else else
*pBstrHelpFile = NULL; *pBstrHelpFile = NULL;
} }
......
...@@ -472,9 +472,10 @@ static void TEXT_SkipChars (int *new_count, const WCHAR **new_str, ...@@ -472,9 +472,10 @@ static void TEXT_SkipChars (int *new_count, const WCHAR **new_str,
assert (max >= n); assert (max >= n);
max -= n; max -= n;
while (n--) while (n--)
{
if (*start_str++ == PREFIX && max--) if (*start_str++ == PREFIX && max--)
start_str++; start_str++;
else; }
start_count -= (start_str - str_on_entry); start_count -= (start_str - str_on_entry);
} }
else else
...@@ -532,7 +533,6 @@ static int TEXT_Reprefix (const WCHAR *str, unsigned int ns, ...@@ -532,7 +533,6 @@ static int TEXT_Reprefix (const WCHAR *str, unsigned int ns,
str++; str++;
ns--; ns--;
} }
else;
i++; i++;
} }
return result; return result;
......
...@@ -776,7 +776,7 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link, BOOL bAgain ) ...@@ -776,7 +776,7 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link, BOOL bAgain )
{ {
LPITEMIDLIST pidl = NULL; LPITEMIDLIST pidl = NULL;
IShellLinkW_GetIDList( sl, &pidl ); IShellLinkW_GetIDList( sl, &pidl );
if( pidl && SHGetPathFromIDListW( pidl, szPath ) ); if( pidl && SHGetPathFromIDListW( pidl, szPath ) )
WINE_TRACE("pidl path : %s\n", wine_dbgstr_w(szPath)); WINE_TRACE("pidl path : %s\n", wine_dbgstr_w(szPath));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment