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
8f31eb1e
Commit
8f31eb1e
authored
Oct 12, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Export RtlNtStatusToDosError from Unix lib.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
116cf7df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
env.c
dlls/ntdll/unix/env.c
+27
-0
No files found.
dlls/ntdll/unix/env.c
View file @
8f31eb1e
...
...
@@ -59,6 +59,7 @@
#include "wine/condrv.h"
#include "wine/debug.h"
#include "unix_private.h"
#include "error.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
environ
);
...
...
@@ -2461,16 +2462,25 @@ NTSTATUS WINAPI NtQueryInstallUILanguage( LANGID *lang )
return
STATUS_SUCCESS
;
}
/**********************************************************************
* RtlUpcaseUnicodeChar (ntdll.so)
*/
WCHAR
WINAPI
RtlUpcaseUnicodeChar
(
WCHAR
wch
)
{
return
ntdll_towupper
(
wch
);
}
/**********************************************************************
* RtlDowncaseUnicodeChar (ntdll.so)
*/
WCHAR
WINAPI
RtlDowncaseUnicodeChar
(
WCHAR
wch
)
{
return
ntdll_towlower
(
wch
);
}
/**********************************************************************
* RtlUTF8ToUnicodeN (ntdll.so)
*/
NTSTATUS
WINAPI
RtlUTF8ToUnicodeN
(
WCHAR
*
dst
,
DWORD
dstlen
,
DWORD
*
reslen
,
const
char
*
src
,
DWORD
srclen
)
{
unsigned
int
res
,
len
;
...
...
@@ -2527,3 +2537,20 @@ NTSTATUS WINAPI RtlUTF8ToUnicodeN( WCHAR *dst, DWORD dstlen, DWORD *reslen, cons
*
reslen
=
(
dstlen
-
(
dstend
-
dst
))
*
sizeof
(
WCHAR
);
return
status
;
}
/**********************************************************************
* RtlNtStatusToDosError (ntdll.so)
*/
ULONG
WINAPI
RtlNtStatusToDosError
(
NTSTATUS
status
)
{
NtCurrentTeb
()
->
LastStatusValue
=
status
;
if
(
!
status
||
(
status
&
0x20000000
))
return
status
;
if
((
status
&
0xf0000000
)
==
0xd0000000
)
status
&=
~
0x10000000
;
/* now some special cases */
if
(
HIWORD
(
status
)
==
0xc001
||
HIWORD
(
status
)
==
0x8007
||
HIWORD
(
status
)
==
0xc007
)
return
LOWORD
(
status
);
return
map_status
(
status
);
}
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