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
13f34481
Commit
13f34481
authored
Aug 16, 2015
by
Carlo Bramini
Committed by
Alexandre Julliard
Aug 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use MSVCRT_xxx macros instead of the same ones from GLIBC.
parent
9b495caa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
file.c
dlls/msvcrt/file.c
+6
-6
No files found.
dlls/msvcrt/file.c
View file @
13f34481
...
...
@@ -1696,13 +1696,13 @@ int CDECL MSVCRT__fstat64(int fd, struct MSVCRT__stat64* buf)
if
(
type
==
FILE_TYPE_PIPE
)
{
buf
->
st_dev
=
buf
->
st_rdev
=
fd
;
buf
->
st_mode
=
S_IFIFO
;
buf
->
st_mode
=
MSVCRT__
S_IFIFO
;
buf
->
st_nlink
=
1
;
}
else
if
(
type
==
FILE_TYPE_CHAR
)
{
buf
->
st_dev
=
buf
->
st_rdev
=
fd
;
buf
->
st_mode
=
S_IFCHR
;
buf
->
st_mode
=
MSVCRT__
S_IFCHR
;
buf
->
st_nlink
=
1
;
}
else
/* FILE_TYPE_DISK etc. */
...
...
@@ -1714,7 +1714,7 @@ int CDECL MSVCRT__fstat64(int fd, struct MSVCRT__stat64* buf)
release_ioinfo
(
info
);
return
-
1
;
}
buf
->
st_mode
=
S_IFREG
|
0444
;
buf
->
st_mode
=
MSVCRT__
S_IFREG
|
0444
;
if
(
!
(
hfi
.
dwFileAttributes
&
FILE_ATTRIBUTE_READONLY
))
buf
->
st_mode
|=
0222
;
buf
->
st_size
=
((
__int64
)
hfi
.
nFileSizeHigh
<<
32
)
+
hfi
.
nFileSizeLow
;
...
...
@@ -2835,7 +2835,7 @@ int CDECL MSVCRT__setmode(int fd,int mode)
if
(
info
==
&
MSVCRT___badioinfo
)
{
*
MSVCRT__errno
()
=
MSVCRT_EBADF
;
return
-
1
;
return
MSVCRT_EOF
;
}
if
(
mode
==
MSVCRT__O_BINARY
)
{
...
...
@@ -3745,7 +3745,7 @@ int CDECL MSVCRT__getw(MSVCRT_FILE* file)
if
(
k
==
MSVCRT_EOF
)
{
file
->
_flag
|=
MSVCRT__IOEOF
;
MSVCRT__unlock_file
(
file
);
return
EOF
;
return
MSVCRT_
EOF
;
}
ch
[
j
]
=
k
;
}
...
...
@@ -4295,7 +4295,7 @@ MSVCRT_size_t CDECL MSVCRT__fread_nolock_s(void *buf, MSVCRT_size_t buf_size, MS
}
else
{
int
c
=
MSVCRT__filbuf
(
stream
);
if
(
c
==
EOF
)
if
(
c
==
MSVCRT_
EOF
)
break
;
if
(
!
MSVCRT_CHECK_PMT_ERR
(
buf_size
!=
buf_pos
,
MSVCRT_ERANGE
))
{
...
...
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