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
4b27dfec
Commit
4b27dfec
authored
Jan 29, 2009
by
Ge van Geldorp
Committed by
Alexandre Julliard
Jan 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Write to HKCR instead of HKCU/Software/Classes for the benefit of…
ole32/tests: Write to HKCR instead of HKCU/Software/Classes for the benefit of older Windows versions.
parent
aac2e8dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
marshal.c
dlls/ole32/tests/marshal.c
+4
-4
No files found.
dlls/ole32/tests/marshal.c
View file @
4b27dfec
...
...
@@ -2246,13 +2246,13 @@ static void reg_unreg_wine_test_class(BOOL Register)
hr
=
StringFromCLSID
(
&
CLSID_WineTest
,
&
pszClsid
);
ok_ole_success
(
hr
,
"StringFromCLSID"
);
strcpy
(
buffer
,
"
Software
\\
Classes
\\
CLSID
\\
"
);
strcpy
(
buffer
,
"CLSID
\\
"
);
WideCharToMultiByte
(
CP_ACP
,
0
,
pszClsid
,
-
1
,
buffer
+
strlen
(
buffer
),
sizeof
(
buffer
)
-
strlen
(
buffer
),
NULL
,
NULL
);
CoTaskMemFree
(
pszClsid
);
strcat
(
buffer
,
"
\\
InprocHandler32"
);
if
(
Register
)
{
error
=
RegCreateKeyEx
(
HKEY_C
URRENT_USER
,
buffer
,
0
,
NULL
,
0
,
KEY_SET_VALUE
,
NULL
,
&
hkey
,
&
dwDisposition
);
error
=
RegCreateKeyEx
(
HKEY_C
LASSES_ROOT
,
buffer
,
0
,
NULL
,
0
,
KEY_SET_VALUE
,
NULL
,
&
hkey
,
&
dwDisposition
);
ok
(
error
==
ERROR_SUCCESS
,
"RegCreateKeyEx failed with error %d
\n
"
,
error
);
error
=
RegSetValueEx
(
hkey
,
NULL
,
0
,
REG_SZ
,
(
const
unsigned
char
*
)
"ole32.dll"
,
strlen
(
"ole32.dll"
)
+
1
);
ok
(
error
==
ERROR_SUCCESS
,
"RegSetValueEx failed with error %d
\n
"
,
error
);
...
...
@@ -2260,9 +2260,9 @@ static void reg_unreg_wine_test_class(BOOL Register)
}
else
{
RegDeleteKey
(
HKEY_C
URRENT_USER
,
buffer
);
RegDeleteKey
(
HKEY_C
LASSES_ROOT
,
buffer
);
*
strrchr
(
buffer
,
'\\'
)
=
'\0'
;
RegDeleteKey
(
HKEY_C
URRENT_USER
,
buffer
);
RegDeleteKey
(
HKEY_C
LASSES_ROOT
,
buffer
);
}
}
...
...
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