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
5ec1b0d1
Commit
5ec1b0d1
authored
May 09, 2002
by
Juergen Schmied
Committed by
Alexandre Julliard
May 09, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected RtlConvertSidToUnicodeString, stub for VerSetConditionMask.
parent
e8449e60
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
13 deletions
+33
-13
nt.c
dlls/ntdll/nt.c
+10
-0
ntdll.spec
dlls/ntdll/ntdll.spec
+2
-1
sec.c
dlls/ntdll/sec.c
+21
-12
No files found.
dlls/ntdll/nt.c
View file @
5ec1b0d1
...
@@ -737,3 +737,13 @@ NTSTATUS WINAPI NtAllocateLocallyUniqueId(PLUID Luid)
...
@@ -737,3 +737,13 @@ NTSTATUS WINAPI NtAllocateLocallyUniqueId(PLUID Luid)
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
}
}
/******************************************************************************
* VerSetConditionMask (NTDLL.@)
*/
ULONGLONG
WINAPI
VerSetConditionMask
(
ULONGLONG
dwlConditionMask
,
DWORD
dwTypeBitMask
,
BYTE
dwConditionMask
)
{
FIXME
(
"%llx %lu %u
\n
"
,
dwlConditionMask
,
dwTypeBitMask
,
dwConditionMask
);
return
dwlConditionMask
;
}
dlls/ntdll/ntdll.spec
View file @
5ec1b0d1
...
@@ -310,7 +310,7 @@ debug_channels (atom cdrom console debug delayhlp dll dosfs dosmem file fixup
...
@@ -310,7 +310,7 @@ debug_channels (atom cdrom console debug delayhlp dll dosfs dosmem file fixup
@ stub RtlConvertExclusiveToShared
@ stub RtlConvertExclusiveToShared
@ stdcall -ret64 RtlConvertLongToLargeInteger(long) RtlConvertLongToLargeInteger
@ stdcall -ret64 RtlConvertLongToLargeInteger(long) RtlConvertLongToLargeInteger
@ stub RtlConvertSharedToExclusive
@ stub RtlConvertSharedToExclusive
@ stdcall RtlConvertSidToUnicodeString(ptr ptr
)
RtlConvertSidToUnicodeString
@ stdcall RtlConvertSidToUnicodeString(ptr ptr
long)
RtlConvertSidToUnicodeString
@ stub RtlConvertUiListToApiList
@ stub RtlConvertUiListToApiList
@ stdcall -ret64 RtlConvertUlongToLargeInteger(long) RtlConvertUlongToLargeInteger
@ stdcall -ret64 RtlConvertUlongToLargeInteger(long) RtlConvertUlongToLargeInteger
@ stub RtlCopyLuid
@ stub RtlCopyLuid
...
@@ -1013,6 +1013,7 @@ debug_channels (atom cdrom console debug delayhlp dll dosfs dosmem file fixup
...
@@ -1013,6 +1013,7 @@ debug_channels (atom cdrom console debug delayhlp dll dosfs dosmem file fixup
@ stub RtlCreatePropertySet
@ stub RtlCreatePropertySet
@ stub RtlSetPropertySetClassId
@ stub RtlSetPropertySetClassId
@ stdcall NtPowerInformation(long long long long long) NtPowerInformation
@ stdcall NtPowerInformation(long long long long long) NtPowerInformation
@ stdcall -ret64 VerSetConditionMask(long long long long) VerSetConditionMask
##################
##################
# Wine extensions
# Wine extensions
...
...
dlls/ntdll/sec.c
View file @
5ec1b0d1
...
@@ -23,6 +23,9 @@
...
@@ -23,6 +23,9 @@
#include <time.h>
#include <time.h>
#include <ctype.h>
#include <ctype.h>
#include <math.h>
#include <math.h>
#include <pwd.h>
#include <unistd.h>
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "wine/exception.h"
#include "wine/exception.h"
...
@@ -721,23 +724,29 @@ NTSTATUS WINAPI RtlGetControlSecurityDescriptor(
...
@@ -721,23 +724,29 @@ NTSTATUS WINAPI RtlGetControlSecurityDescriptor(
/******************************************************************************
/******************************************************************************
* RtlConvertSidToUnicodeString (NTDLL.@)
* RtlConvertSidToUnicodeString (NTDLL.@)
*
* The returned SID is used to access the USER registry hive usually
*
* the native function returns something like
* "S-1-5-21-0000000000-000000000-0000000000-500";
*/
*/
NTSTATUS
WINAPI
RtlConvertSidToUnicodeString
(
NTSTATUS
WINAPI
RtlConvertSidToUnicodeString
(
PUNICODE_STRING
UnicodeSID
,
PUNICODE_STRING
String
,
PSID
*
pSid
)
PSID
Sid
,
BOOLEAN
AllocateString
)
{
{
/* LPSTR GenSID = "S-1-5-21-0000000000-000000000-0000000000-500"; */
const
char
*
p
;
NTSTATUS
status
;
ANSI_STRING
AnsiStr
;
LPSTR
GenSID
=
".Default"
;
/* usually the returned SID is used to */
struct
passwd
*
pwd
=
getpwuid
(
getuid
()
);
/* access "\\REGISTRY\\USER\\.DEFAULT" */
p
=
(
pwd
)
?
pwd
->
pw_name
:
".Default"
;
ANSI_STRING
AnsiStr
;
FIXME
(
"(%p %p %u)
\n
"
,
String
,
Sid
,
AllocateString
)
;
FIXME
(
"(%p %p)
\n
"
,
UnicodeSID
,
pSid
);
RtlInitAnsiString
(
&
AnsiStr
,
p
);
if
(
UnicodeSID
)
status
=
RtlAnsiStringToUnicodeString
(
String
,
&
AnsiStr
,
AllocateString
);
TRACE
(
"%p(<OUT>) (%u %u)
\n
"
,
UnicodeSID
->
Buffer
,
UnicodeSID
->
Length
,
UnicodeSID
->
MaximumLength
);
RtlInitAnsiString
(
&
AnsiStr
,
GenSID
);
TRACE
(
"%s (%u %u)
\n
"
,
debugstr_w
(
String
->
Buffer
),
String
->
Length
,
String
->
MaximumLength
);
return
RtlAnsiStringToUnicodeString
(
UnicodeSID
,
&
AnsiStr
,
TRUE
)
;
return
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