Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
99eab9d3
Commit
99eab9d3
authored
Feb 17, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Avoid a not necessary intermediate variable.
parent
35a95876
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
istream.c
dlls/shlwapi/istream.c
+4
-6
No files found.
dlls/shlwapi/istream.c
View file @
99eab9d3
...
...
@@ -296,14 +296,12 @@ static HRESULT WINAPI IStream_fnStat(IStream *iface, STATSTG* lpStat,
{
ISHFileStream
*
This
=
impl_from_IStream
(
iface
);
BY_HANDLE_FILE_INFORMATION
fi
;
HRESULT
hRet
=
S_OK
;
TRACE
(
"(%p,%p,%d)
\n
"
,
This
,
lpStat
,
grfStatFlag
);
if
(
!
grfStatFlag
)
hRet
=
STG_E_INVALIDPOINTER
;
else
{
return
STG_E_INVALIDPOINTER
;
memset
(
&
fi
,
0
,
sizeof
(
fi
));
GetFileInformationByHandle
(
This
->
hFile
,
&
fi
);
...
...
@@ -322,8 +320,8 @@ static HRESULT WINAPI IStream_fnStat(IStream *iface, STATSTG* lpStat,
memcpy
(
&
lpStat
->
clsid
,
&
IID_IStream
,
sizeof
(
CLSID
));
lpStat
->
grfStateBits
=
This
->
grfStateBits
;
lpStat
->
reserved
=
0
;
}
return
hRet
;
return
S_OK
;
}
/*************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment