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
44d604f5
Commit
44d604f5
authored
Mar 18, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Enable compilation with long types in error.c.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
570cff9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
error.c
dlls/ntdll/tests/error.c
+5
-4
No files found.
dlls/ntdll/tests/error.c
View file @
44d604f5
...
...
@@ -18,6 +18,7 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#undef WINE_NO_LONG_TYPES
/* temporary for migration */
#include <stdarg.h>
#include <stdio.h>
...
...
@@ -75,7 +76,7 @@ static void cmp_call(NTSTATUS win_nt, ULONG win32, const char* message)
err
=
pRtlNtStatusToDosError
(
win_nt
);
ok
(
err
==
win32
,
"%s (%
x): got %u, expected %
u
\n
"
,
"%s (%
lx): got %lu, expected %l
u
\n
"
,
message
,
win_nt
,
err
,
win32
);
}
...
...
@@ -86,7 +87,7 @@ static void cmp_call2(NTSTATUS win_nt, ULONG win32, const char* message)
err
=
pRtlNtStatusToDosError
(
win_nt
);
ok
(
err
==
win32
||
(
!
strict
&&
err
==
ERROR_MR_MID_NOT_FOUND
),
"%s (%
x): got %u, expected %
u (or MID_NOT_FOUND)
\n
"
,
"%s (%
lx): got %lu, expected %l
u (or MID_NOT_FOUND)
\n
"
,
message
,
win_nt
,
err
,
win32
);
}
...
...
@@ -96,7 +97,7 @@ static void cmp_call3(NTSTATUS win_nt, ULONG win32_1, ULONG win32_2, const char*
err
=
pRtlNtStatusToDosError
(
win_nt
);
ok
(
err
==
win32_1
||
(
!
strict
&&
err
==
win32_2
),
"%s (%
x): got %u, expected %u or %
u
\n
"
,
"%s (%
lx): got %lu, expected %lu or %l
u
\n
"
,
message
,
win_nt
,
err
,
win32_1
,
win32_2
);
}
...
...
@@ -107,7 +108,7 @@ static void cmp_call4(NTSTATUS win_nt, ULONG win32_1, ULONG win32_2, const char*
err
=
pRtlNtStatusToDosError
(
win_nt
);
ok
(
err
==
win32_1
||
(
!
strict
&&
(
err
==
win32_2
||
err
==
ERROR_MR_MID_NOT_FOUND
)),
"%s (%
x): got %u, expected %u or %
u
\n
"
,
"%s (%
lx): got %lu, expected %lu or %l
u
\n
"
,
message
,
win_nt
,
err
,
win32_1
,
win32_2
);
}
...
...
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