mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 09:57:19 +00:00
combase: Avoid calling RtlInitUnicodeString on a static constant.
This commit is contained in:
parent
2cfcce8350
commit
5a1d2dde3b
|
@ -220,7 +220,7 @@ static HKEY create_classes_root_hkey(DWORD access)
|
||||||
{
|
{
|
||||||
HKEY hkey, ret = 0;
|
HKEY hkey, ret = 0;
|
||||||
OBJECT_ATTRIBUTES attr;
|
OBJECT_ATTRIBUTES attr;
|
||||||
UNICODE_STRING name;
|
UNICODE_STRING name = RTL_CONSTANT_STRING(L"\\Registry\\Machine\\Software\\Classes");
|
||||||
|
|
||||||
attr.Length = sizeof(attr);
|
attr.Length = sizeof(attr);
|
||||||
attr.RootDirectory = 0;
|
attr.RootDirectory = 0;
|
||||||
|
@ -228,7 +228,6 @@ static HKEY create_classes_root_hkey(DWORD access)
|
||||||
attr.Attributes = 0;
|
attr.Attributes = 0;
|
||||||
attr.SecurityDescriptor = NULL;
|
attr.SecurityDescriptor = NULL;
|
||||||
attr.SecurityQualityOfService = NULL;
|
attr.SecurityQualityOfService = NULL;
|
||||||
RtlInitUnicodeString(&name, L"\\Registry\\Machine\\Software\\Classes");
|
|
||||||
|
|
||||||
if (create_key( &hkey, access, &attr )) return 0;
|
if (create_key( &hkey, access, &attr )) return 0;
|
||||||
TRACE( "%s -> %p\n", debugstr_w(attr.ObjectName->Buffer), hkey );
|
TRACE( "%s -> %p\n", debugstr_w(attr.ObjectName->Buffer), hkey );
|
||||||
|
|
Loading…
Reference in a new issue