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
797ee403
Commit
797ee403
authored
Nov 29, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Create the NumMethods key too when registering an interface.
parent
ad54700b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
cpsf.c
dlls/rpcrt4/cpsf.c
+5
-0
No files found.
dlls/rpcrt4/cpsf.c
View file @
797ee403
...
...
@@ -223,6 +223,8 @@ HRESULT WINAPI NdrDllRegisterProxy(HMODULE hDll,
static
const
WCHAR
clsid32W
[]
=
{
'P'
,
'r'
,
'o'
,
'x'
,
'y'
,
'S'
,
't'
,
'u'
,
'b'
,
'C'
,
'l'
,
's'
,
'i'
,
'd'
,
'3'
,
'2'
,
0
};
static
const
WCHAR
interfaceW
[]
=
{
'I'
,
'n'
,
't'
,
'e'
,
'r'
,
'f'
,
'a'
,
'c'
,
'e'
,
'\\'
,
0
};
static
const
WCHAR
psfactoryW
[]
=
{
'P'
,
'S'
,
'F'
,
'a'
,
'c'
,
't'
,
'o'
,
'r'
,
'y'
,
'B'
,
'u'
,
'f'
,
'f'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
numformatW
[]
=
{
'%'
,
'u'
,
0
};
static
const
WCHAR
nummethodsW
[]
=
{
'N'
,
'u'
,
'm'
,
'M'
,
'e'
,
't'
,
'h'
,
'o'
,
'd'
,
's'
,
0
};
static
const
WCHAR
inprocserverW
[]
=
{
'I'
,
'n'
,
'P'
,
'r'
,
'o'
,
'c'
,
'S'
,
'e'
,
'r'
,
'v'
,
'e'
,
'r'
,
'3'
,
'2'
,
0
};
static
const
WCHAR
threadingmodelW
[]
=
{
'T'
,
'h'
,
'r'
,
'e'
,
'a'
,
'd'
,
'i'
,
'n'
,
'g'
,
'M'
,
'o'
,
'd'
,
'e'
,
'l'
,
0
};
WCHAR
clsid
[
39
],
keyname
[
50
],
module
[
MAX_PATH
];
...
...
@@ -245,9 +247,12 @@ HRESULT WINAPI NdrDllRegisterProxy(HMODULE hDll,
strcpyW
(
keyname
,
interfaceW
);
format_clsid
(
keyname
+
strlenW
(
keyname
),
proxy
->
header
.
piid
);
if
(
RegCreateKeyW
(
HKEY_CLASSES_ROOT
,
keyname
,
&
key
)
==
ERROR_SUCCESS
)
{
WCHAR
num
[
10
];
if
(
name
)
RegSetValueExA
(
key
,
NULL
,
0
,
REG_SZ
,
(
const
BYTE
*
)
name
,
strlen
(
name
)
+
1
);
RegSetValueW
(
key
,
clsid32W
,
REG_SZ
,
clsid
,
0
);
sprintfW
(
num
,
numformatW
,
proxy
->
header
.
DispatchTableCount
);
RegSetValueW
(
key
,
nummethodsW
,
REG_SZ
,
num
,
0
);
RegCloseKey
(
key
);
}
}
...
...
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