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
d66b9f7e
Commit
d66b9f7e
authored
Feb 27, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use the correct msvcrt defines for errno values.
parent
a470afca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
16 deletions
+13
-16
heap.c
dlls/msvcrt/heap.c
+0
-1
mbcs.c
dlls/msvcrt/mbcs.c
+5
-6
string.c
dlls/msvcrt/string.c
+8
-9
No files found.
dlls/msvcrt/heap.c
View file @
d66b9f7e
...
...
@@ -23,7 +23,6 @@
#include "msvcrt.h"
#include "mtdll.h"
#include "msvcrt/errno.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcrt
);
...
...
dlls/msvcrt/mbcs.c
View file @
d66b9f7e
...
...
@@ -27,7 +27,6 @@
#include "wine/unicode.h"
#include "wine/debug.h"
#include "msvcrt/mbctype.h"
#include "msvcrt/errno.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcrt
);
...
...
@@ -454,11 +453,11 @@ int CDECL _mbsnbcpy_s(unsigned char* dst, MSVCRT_size_t size, const unsigned cha
MSVCRT_size_t
pos
=
0
;
if
(
!
dst
||
size
==
0
)
return
EINVAL
;
return
MSVCRT_
EINVAL
;
if
(
!
src
)
{
dst
[
0
]
=
'\0'
;
return
EINVAL
;
return
MSVCRT_
EINVAL
;
}
if
(
!
n
)
return
0
;
...
...
@@ -471,7 +470,7 @@ int CDECL _mbsnbcpy_s(unsigned char* dst, MSVCRT_size_t size, const unsigned cha
if
(
pos
==
size
)
{
dst
[
0
]
=
'\0'
;
return
ERANGE
;
return
MSVCRT_
ERANGE
;
}
is_lead
=
(
!
is_lead
&&
_ismbblead
(
*
src
));
n
--
;
...
...
@@ -489,7 +488,7 @@ int CDECL _mbsnbcpy_s(unsigned char* dst, MSVCRT_size_t size, const unsigned cha
if
(
pos
==
size
)
{
dst
[
0
]
=
'\0'
;
return
ERANGE
;
return
MSVCRT_
ERANGE
;
}
if
(
!
(
*
src
))
break
;
...
...
@@ -502,7 +501,7 @@ int CDECL _mbsnbcpy_s(unsigned char* dst, MSVCRT_size_t size, const unsigned cha
else
{
dst
[
0
]
=
'\0'
;
return
ERANGE
;
return
MSVCRT_
ERANGE
;
}
return
0
;
...
...
dlls/msvcrt/string.c
View file @
d66b9f7e
...
...
@@ -26,7 +26,6 @@
#include <stdlib.h>
#include "msvcrt.h"
#include "msvcrt/errno.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcrt
);
...
...
@@ -159,12 +158,12 @@ int CDECL MSVCRT_strcoll( const char* str1, const char* str2 )
int
CDECL
MSVCRT_strcpy_s
(
char
*
dst
,
MSVCRT_size_t
elem
,
const
char
*
src
)
{
MSVCRT_size_t
i
;
if
(
!
elem
)
return
EINVAL
;
if
(
!
dst
)
return
EINVAL
;
if
(
!
elem
)
return
MSVCRT_
EINVAL
;
if
(
!
dst
)
return
MSVCRT_
EINVAL
;
if
(
!
src
)
{
dst
[
0
]
=
'\0'
;
return
EINVAL
;
return
MSVCRT_
EINVAL
;
}
for
(
i
=
0
;
i
<
elem
;
i
++
)
...
...
@@ -172,7 +171,7 @@ int CDECL MSVCRT_strcpy_s( char* dst, MSVCRT_size_t elem, const char* src )
if
((
dst
[
i
]
=
src
[
i
])
==
'\0'
)
return
0
;
}
dst
[
0
]
=
'\0'
;
return
ERANGE
;
return
MSVCRT_
ERANGE
;
}
/*********************************************************************
...
...
@@ -181,12 +180,12 @@ int CDECL MSVCRT_strcpy_s( char* dst, MSVCRT_size_t elem, const char* src )
int
CDECL
MSVCRT_strcat_s
(
char
*
dst
,
MSVCRT_size_t
elem
,
const
char
*
src
)
{
MSVCRT_size_t
i
,
j
;
if
(
!
dst
)
return
EINVAL
;
if
(
elem
==
0
)
return
EINVAL
;
if
(
!
dst
)
return
MSVCRT_
EINVAL
;
if
(
elem
==
0
)
return
MSVCRT_
EINVAL
;
if
(
!
src
)
{
dst
[
0
]
=
'\0'
;
return
EINVAL
;
return
MSVCRT_
EINVAL
;
}
for
(
i
=
0
;
i
<
elem
;
i
++
)
...
...
@@ -201,7 +200,7 @@ int CDECL MSVCRT_strcat_s( char* dst, MSVCRT_size_t elem, const char* src )
}
/* Set the first element to 0, not the first element after the skipped part */
dst
[
0
]
=
'\0'
;
return
ERANGE
;
return
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