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
60501aa9
Commit
60501aa9
authored
Apr 08, 2008
by
Erik de Castro Lopo
Committed by
Alexandre Julliard
Apr 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Clear end-of-file flag on fseek.
parent
994af69c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
file.c
dlls/msvcrt/file.c
+2
-0
file.c
dlls/msvcrt/tests/file.c
+1
-1
No files found.
dlls/msvcrt/file.c
View file @
60501aa9
...
...
@@ -918,6 +918,8 @@ int CDECL MSVCRT_fseek(MSVCRT_FILE* file, long offset, int whence)
if
(
file
->
_flag
&
MSVCRT__IORW
)
{
file
->
_flag
&=
~
(
MSVCRT__IOREAD
|
MSVCRT__IOWRT
);
}
/* Clear end of file flag */
file
->
_flag
&=
~
MSVCRT__IOEOF
;
return
(
_lseek
(
file
->
_file
,
offset
,
whence
)
==
-
1
)
?-
1
:
0
;
}
...
...
dlls/msvcrt/tests/file.c
View file @
60501aa9
...
...
@@ -241,7 +241,7 @@ static void test_readmode( BOOL ascii_mode )
ok
(
fread
(
buffer
,
1
,
1
,
file
)
==
0
,
"fread failure in %s
\n
"
,
IOMODE
);
ok
(
feof
(
file
)
!=
0
,
"feof failure in %s
\n
"
,
IOMODE
);
ok
(
fseek
(
file
,
-
3
,
SEEK_CUR
)
==
0
,
"seek failure in %s
\n
"
,
IOMODE
);
todo_wine
ok
(
feof
(
file
)
==
0
,
"feof failure in %s
\n
"
,
IOMODE
);
ok
(
feof
(
file
)
==
0
,
"feof failure in %s
\n
"
,
IOMODE
);
ok
(
fread
(
buffer
,
2
,
1
,
file
)
==
1
,
"fread failed in %s
\n
"
,
IOMODE
);
ok
(
feof
(
file
)
==
0
,
"feof failure in %s
\n
"
,
IOMODE
);
ok
(
fread
(
buffer
,
2
,
1
,
file
)
==
0
,
"fread failure in %s
\n
"
,
IOMODE
);
...
...
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