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
66791afa
Commit
66791afa
authored
Jul 31, 2000
by
Hidenori Takeshima
Committed by
Alexandre Julliard
Jul 31, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for 64-bit negative seek value.
parent
660b5105
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
file.c
files/file.c
+6
-3
file.c
server/file.c
+2
-2
No files found.
files/file.c
View file @
66791afa
...
...
@@ -1289,9 +1289,12 @@ DWORD WINAPI SetFilePointer( HANDLE hFile, LONG distance, LONG *highword,
{
struct
set_file_pointer_request
*
req
=
get_req_buffer
();
if
(
highword
&&
*
highword
)
if
(
highword
&&
((
distance
>=
0
&&
*
highword
!=
0
)
||
(
distance
<
0
&&
*
highword
!=
-
1
)))
{
FIXME
(
"64-bit offsets not supported yet
\n
"
);
FIXME
(
"64-bit offsets not supported yet
\n
"
"SetFilePointer(%08x,%08lx,%08lx,%08lx)
\n
"
,
hFile
,
distance
,
*
highword
,
method
);
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
0xffffffff
;
}
...
...
@@ -1300,7 +1303,7 @@ DWORD WINAPI SetFilePointer( HANDLE hFile, LONG distance, LONG *highword,
req
->
handle
=
hFile
;
req
->
low
=
distance
;
req
->
high
=
highword
?
*
highword
:
0
;
req
->
high
=
highword
?
*
highword
:
(
distance
>=
0
)
?
0
:
-
1
;
/* FIXME: assumes 1:1 mapping between Windows and Unix seek constants */
req
->
whence
=
method
;
SetLastError
(
0
);
...
...
server/file.c
View file @
66791afa
...
...
@@ -344,9 +344,9 @@ static int set_file_pointer( int handle, int *low, int *high, int whence )
struct
file
*
file
;
int
result
;
if
(
*
high
)
if
(
(
*
low
>=
0
&&
*
high
!=
0
)
||
(
*
low
<
0
&&
*
high
!=
-
1
)
)
{
fprintf
(
stderr
,
"set_file_pointer: offset >
4
Gb not supported yet
\n
"
);
fprintf
(
stderr
,
"set_file_pointer: offset >
2
Gb not supported yet
\n
"
);
set_error
(
STATUS_INVALID_PARAMETER
);
return
0
;
}
...
...
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