Skip to content

Commit e1c63b8

Browse files
[COMBASE] fix create_classes_root_hkey
1 parent 5dfc83e commit e1c63b8

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

dll/win32/combase/combase.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,16 +221,16 @@ static HKEY create_classes_root_hkey(DWORD access)
221221
{
222222
HKEY hkey, ret = 0;
223223
OBJECT_ATTRIBUTES attr;
224-
#ifdef __REACTOS__
225-
UNICODE_STRING name = RTL_CONSTANT_STRING(L"\\REGISTRY\\Machine\\Software\\Classes");
226-
#else
227224
UNICODE_STRING name = RTL_CONSTANT_STRING(L"\\Registry\\Machine\\Software\\Classes");
228-
#endif
229225

230226
attr.Length = sizeof(attr);
231227
attr.RootDirectory = 0;
232228
attr.ObjectName = &name;
229+
#ifdef __REACTOS__
230+
attr.Attributes = OBJ_CASE_INSENSITIVE;
231+
#else
233232
attr.Attributes = 0;
233+
#endif
234234
attr.SecurityDescriptor = NULL;
235235
attr.SecurityQualityOfService = NULL;
236236

dll/win32/ole32/compobj.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,16 +255,16 @@ static HKEY create_classes_root_hkey(DWORD access)
255255
{
256256
HKEY hkey, ret = 0;
257257
OBJECT_ATTRIBUTES attr;
258-
#ifdef __REACTOS__
259-
UNICODE_STRING name = RTL_CONSTANT_STRING(L"\\REGISTRY\\Machine\\Software\\Classes");
260-
#else
261258
UNICODE_STRING name = RTL_CONSTANT_STRING(L"\\Registry\\Machine\\Software\\Classes");
262-
#endif
263259

264260
attr.Length = sizeof(attr);
265261
attr.RootDirectory = 0;
266262
attr.ObjectName = &name;
263+
#ifdef __REACTOS__
264+
attr.Attributes = OBJ_CASE_INSENSITIVE;
265+
#else
267266
attr.Attributes = 0;
267+
#endif
268268
attr.SecurityDescriptor = NULL;
269269
attr.SecurityQualityOfService = NULL;
270270
if (create_key( &hkey, access, &attr )) return 0;

0 commit comments

Comments
 (0)