mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 09:50:52 +00:00
explorer: Fix uninitialized variable warning.
programs/explorer/desktop.c:104:16: warning: ‘hres’ may be used uninitialized in this function [-Wmaybe-uninitialized] 104 | return hres; | ^~~~
This commit is contained in:
parent
f898f206f6
commit
f266dc094a
1 changed files with 4 additions and 3 deletions
|
@ -98,10 +98,11 @@ static HRESULT get_typeinfo(tid_t tid, ITypeInfo **typeinfo)
|
|||
{
|
||||
HRESULT hres;
|
||||
|
||||
if (!typelib)
|
||||
if (!typelib) {
|
||||
hres = load_typelib();
|
||||
if (!typelib)
|
||||
return hres;
|
||||
if (!typelib)
|
||||
return hres;
|
||||
}
|
||||
|
||||
if (!typeinfos[tid]) {
|
||||
ITypeInfo *ti;
|
||||
|
|
Loading…
Reference in a new issue