Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Felix Münchhalfen
wine
Commits
5ec1b0d1
Commit
5ec1b0d1
authored
22 years ago
by
Juergen Schmied
Committed by
Alexandre Julliard
22 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Corrected RtlConvertSidToUnicodeString, stub for VerSetConditionMask.
parent
e8449e60
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/ntdll/nt.c
+10
-0
10 additions, 0 deletions
dlls/ntdll/nt.c
dlls/ntdll/ntdll.spec
+2
-1
2 additions, 1 deletion
dlls/ntdll/ntdll.spec
dlls/ntdll/sec.c
+21
-12
21 additions, 12 deletions
dlls/ntdll/sec.c
with
33 additions
and
13 deletions
dlls/ntdll/nt.c
+
10
−
0
View file @
5ec1b0d1
...
...
@@ -737,3 +737,13 @@ NTSTATUS WINAPI NtAllocateLocallyUniqueId(PLUID Luid)
return
STATUS_SUCCESS
;
}
/******************************************************************************
* VerSetConditionMask (NTDLL.@)
*/
ULONGLONG
WINAPI
VerSetConditionMask
(
ULONGLONG
dwlConditionMask
,
DWORD
dwTypeBitMask
,
BYTE
dwConditionMask
)
{
FIXME
(
"%llx %lu %u
\n
"
,
dwlConditionMask
,
dwTypeBitMask
,
dwConditionMask
);
return
dwlConditionMask
;
}
This diff is collapsed.
Click to expand it.
dlls/ntdll/ntdll.spec
+
2
−
1
View file @
5ec1b0d1
...
...
@@ -310,7 +310,7 @@ debug_channels (atom cdrom console debug delayhlp dll dosfs dosmem file fixup
@ stub RtlConvertExclusiveToShared
@ stdcall -ret64 RtlConvertLongToLargeInteger(long) RtlConvertLongToLargeInteger
@ stub RtlConvertSharedToExclusive
@ stdcall RtlConvertSidToUnicodeString(ptr ptr
)
RtlConvertSidToUnicodeString
@ stdcall RtlConvertSidToUnicodeString(ptr ptr
long)
RtlConvertSidToUnicodeString
@ stub RtlConvertUiListToApiList
@ stdcall -ret64 RtlConvertUlongToLargeInteger(long) RtlConvertUlongToLargeInteger
@ stub RtlCopyLuid
...
...
@@ -1013,6 +1013,7 @@ debug_channels (atom cdrom console debug delayhlp dll dosfs dosmem file fixup
@ stub RtlCreatePropertySet
@ stub RtlSetPropertySetClassId
@ stdcall NtPowerInformation(long long long long long) NtPowerInformation
@ stdcall -ret64 VerSetConditionMask(long long long long) VerSetConditionMask
##################
# Wine extensions
...
...
This diff is collapsed.
Click to expand it.
dlls/ntdll/sec.c
+
21
−
12
View file @
5ec1b0d1
...
...
@@ -23,6 +23,9 @@
#include
<time.h>
#include
<ctype.h>
#include
<math.h>
#include
<pwd.h>
#include
<unistd.h>
#include
"windef.h"
#include
"winbase.h"
#include
"wine/exception.h"
...
...
@@ -721,23 +724,29 @@ NTSTATUS WINAPI RtlGetControlSecurityDescriptor(
/******************************************************************************
* 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
(
PUNICODE_STRING
UnicodeSID
,
PSID
*
pSid
)
PUNICODE_STRING
String
,
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 */
/* access "\\REGISTRY\\USER\\.DEFAULT" */
struct
passwd
*
pwd
=
getpwuid
(
getuid
()
);
p
=
(
pwd
)
?
pwd
->
pw_name
:
".Default"
;
ANSI_STRING
AnsiStr
;
FIXME
(
"(%p %p %u)
\n
"
,
String
,
Sid
,
AllocateString
)
;
FIXME
(
"(%p %p)
\n
"
,
UnicodeSID
,
pSid
);
if
(
UnicodeSID
)
TRACE
(
"%p(<OUT>) (%u %u)
\n
"
,
UnicodeSID
->
Buffer
,
UnicodeSID
->
Length
,
UnicodeSID
->
MaximumLength
);
RtlInitAnsiString
(
&
AnsiStr
,
p
);
status
=
RtlAnsiStringToUnicodeString
(
String
,
&
AnsiStr
,
AllocateString
);
RtlInitAnsiString
(
&
AnsiStr
,
GenSID
);
return
RtlAnsiStringToUnicodeString
(
UnicodeSID
,
&
AnsiStr
,
TRUE
)
;
TRACE
(
"%s (%u %u)
\n
"
,
debugstr_w
(
String
->
Buffer
),
String
->
Length
,
String
->
MaximumLength
);
return
status
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment