Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d1b375f7
Commit
d1b375f7
authored
Jan 06, 2006
by
Rolf Kalbermatter
Committed by
Alexandre Julliard
Jan 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Fix a LARGE_INTEGER truncation.
parent
e49a5c22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
umstream.c
dlls/urlmon/umstream.c
+7
-10
No files found.
dlls/urlmon/umstream.c
View file @
d1b375f7
...
...
@@ -252,26 +252,21 @@ static HRESULT WINAPI IStream_fnWrite (IStream * iface,
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IStream_fnSeek
(
IStream
*
iface
,
static
HRESULT
WINAPI
IStream_fnSeek
(
IStream
*
iface
,
LARGE_INTEGER
dlibMove
,
DWORD
dwOrigin
,
ULARGE_INTEGER
*
plibNewPosition
)
{
DWORD
pos
,
newposlo
;
LONG
newposhi
;
LARGE_INTEGER
newpos
;
IUMCacheStream
*
This
=
(
IUMCacheStream
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
This
);
pos
=
dlibMove
.
QuadPart
;
/* FIXME: truncates */
newposhi
=
0
;
newposlo
=
SetFilePointer
(
This
->
handle
,
pos
,
&
newposhi
,
dwOrigin
);
if
(
newposlo
==
INVALID_SET_FILE_POINTER
&&
GetLastError
())
if
(
!
SetFilePointerEx
(
This
->
handle
,
dlibMove
,
&
newpos
,
dwOrigin
))
return
E_FAIL
;
if
(
plibNewPosition
)
plibNewPosition
->
QuadPart
=
newpos
lo
|
(
(
LONGLONG
)
newposhi
<<
32
)
;
plibNewPosition
->
QuadPart
=
newpos
.
QuadPart
;
return
S_OK
;
}
...
...
@@ -279,11 +274,13 @@ static HRESULT WINAPI IStream_fnSeek ( IStream * iface,
static
HRESULT
WINAPI
IStream_fnSetSize
(
IStream
*
iface
,
ULARGE_INTEGER
libNewSize
)
{
LARGE_INTEGER
newpos
;
IUMCacheStream
*
This
=
(
IUMCacheStream
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
This
);
if
(
!
SetFilePointer
(
This
->
handle
,
libNewSize
.
QuadPart
,
NULL
,
FILE_BEGIN
)
)
newpos
.
QuadPart
=
libNewSize
.
QuadPart
;
if
(
!
SetFilePointerEx
(
This
->
handle
,
newpos
,
NULL
,
FILE_BEGIN
)
)
return
E_FAIL
;
if
(
!
SetEndOfFile
(
This
->
handle
)
)
...
...
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