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
c90d7258
Commit
c90d7258
authored
Nov 19, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp140: Fix _Winerror_map test failures.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
afc0d31d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
msvcp140.c
dlls/msvcp140/tests/msvcp140.c
+3
-2
misc.c
dlls/msvcp90/misc.c
+1
-1
No files found.
dlls/msvcp140/tests/msvcp140.c
View file @
c90d7258
...
...
@@ -1270,6 +1270,7 @@ static void test__Winerror_map(void)
static
struct
{
int
winerr
,
doserr
;
BOOL
broken
;
int
broken_doserr
;
}
tests
[]
=
{
{
ERROR_INVALID_FUNCTION
,
ENOSYS
},
{
ERROR_FILE_NOT_FOUND
,
ENOENT
},
{
ERROR_PATH_NOT_FOUND
,
ENOENT
},
{
ERROR_TOO_MANY_OPEN_FILES
,
EMFILE
},
...
...
@@ -1285,7 +1286,7 @@ static void test__Winerror_map(void)
{
ERROR_FILE_EXISTS
,
EEXIST
},
{
ERROR_CANNOT_MAKE
,
EACCES
},
{
ERROR_INVALID_PARAMETER
,
EINVAL
,
TRUE
},
{
ERROR_OPEN_FAILED
,
EIO
},
{
ERROR_BUFFER_OVERFLOW
,
ENAMETOOLONG
},
{
ERROR_DISK_FULL
,
ENOSPC
},
{
ERROR_INVALID_NAME
,
EINVAL
},
{
ERROR_NEGATIVE_SEEK
,
EINVAL
},
{
ERROR_INVALID_NAME
,
E
NOENT
,
TRUE
,
E
INVAL
},
{
ERROR_NEGATIVE_SEEK
,
EINVAL
},
{
ERROR_BUSY_DRIVE
,
EBUSY
},
{
ERROR_DIR_NOT_EMPTY
,
ENOTEMPTY
},
{
ERROR_BUSY
,
EBUSY
},
{
ERROR_ALREADY_EXISTS
,
EEXIST
},
{
ERROR_LOCKED
,
ENOLCK
},
{
ERROR_DIRECTORY
,
EINVAL
},
...
...
@@ -1313,7 +1314,7 @@ static void test__Winerror_map(void)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
i
++
)
{
ret
=
p__Winerror_map
(
tests
[
i
].
winerr
);
ok
(
ret
==
tests
[
i
].
doserr
||
broken
(
tests
[
i
].
broken
&&
!
ret
),
ok
(
ret
==
tests
[
i
].
doserr
||
broken
(
tests
[
i
].
broken
&&
ret
==
tests
[
i
].
broken_doserr
),
"_Winerror_map(%d) returned %d, expected %d
\n
"
,
tests
[
i
].
winerr
,
ret
,
tests
[
i
].
doserr
);
}
...
...
dlls/msvcp90/misc.c
View file @
c90d7258
...
...
@@ -216,7 +216,7 @@ static const struct {
{
ERROR_FILE_EXISTS
,
EEXIST
},
{
ERROR_CANNOT_MAKE
,
EACCES
},
{
ERROR_INVALID_PARAMETER
,
EINVAL
},
{
ERROR_OPEN_FAILED
,
EIO
},
{
ERROR_BUFFER_OVERFLOW
,
ENAMETOOLONG
},
{
ERROR_DISK_FULL
,
ENOSPC
},
{
ERROR_INVALID_NAME
,
E
INVAL
},
{
ERROR_NEGATIVE_SEEK
,
EINVAL
},
{
ERROR_INVALID_NAME
,
E
NOENT
},
{
ERROR_NEGATIVE_SEEK
,
EINVAL
},
{
ERROR_BUSY_DRIVE
,
EBUSY
},
{
ERROR_DIR_NOT_EMPTY
,
ENOTEMPTY
},
{
ERROR_BUSY
,
EBUSY
},
{
ERROR_ALREADY_EXISTS
,
EEXIST
},
{
ERROR_LOCKED
,
ENOLCK
},
{
ERROR_DIRECTORY
,
EINVAL
},
...
...
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