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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
istream.c
dlls/shlwapi/istream.c
+8
-10
No files found.
dlls/shlwapi/istream.c
View file @
99eab9d3
...
...
@@ -294,16 +294,14 @@ static HRESULT WINAPI IStream_fnLockUnlockRegion(IStream *iface, ULARGE_INTEGER
static
HRESULT
WINAPI
IStream_fnStat
(
IStream
*
iface
,
STATSTG
*
lpStat
,
DWORD
grfStatFlag
)
{
ISHFileStream
*
This
=
impl_from_IStream
(
iface
);
BY_HANDLE_FILE_INFORMATION
fi
;
HRESULT
hRet
=
S_OK
;
ISHFileStream
*
This
=
impl_from_IStream
(
iface
);
BY_HANDLE_FILE_INFORMATION
fi
;
TRACE
(
"(%p,%p,%d)
\n
"
,
This
,
lpStat
,
grfStatFlag
);
TRACE
(
"(%p,%p,%d)
\n
"
,
This
,
lpStat
,
grfStatFlag
);
if
(
!
grfStatFlag
)
return
STG_E_INVALIDPOINTER
;
if
(
!
grfStatFlag
)
hRet
=
STG_E_INVALIDPOINTER
;
else
{
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