Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6ea7932c
Commit
6ea7932c
authored
Jan 03, 2002
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented CoTreatAsClass, simplified OleSetAutoConvert.
parent
edb8bdb5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
16 deletions
+28
-16
compobj.c
dlls/ole32/compobj.c
+28
-7
ole2stubs.c
dlls/ole32/ole2stubs.c
+0
-9
No files found.
dlls/ole32/compobj.c
View file @
6ea7932c
...
...
@@ -2125,11 +2125,11 @@ done:
*/
HRESULT
WINAPI
OleSetAutoConvert
(
REFCLSID
clsidOld
,
REFCLSID
clsidNew
)
{
HKEY
hkey
=
0
,
hkeyConvert
=
0
;
HKEY
hkey
=
0
;
char
buf
[
200
],
szClsidNew
[
200
];
HRESULT
res
=
S_OK
;
TRACE
(
"(%
p,%p);
\n
"
,
clsidOld
,
clsidNew
);
TRACE
(
"(%
s,%s)
\n
"
,
debugstr_guid
(
clsidOld
),
debugstr_guid
(
clsidNew
)
);
sprintf
(
buf
,
"CLSID
\\
"
);
WINE_StringFromCLSID
(
clsidOld
,
&
buf
[
6
]);
WINE_StringFromCLSID
(
clsidNew
,
szClsidNew
);
if
(
RegOpenKeyA
(
HKEY_CLASSES_ROOT
,
buf
,
&
hkey
))
...
...
@@ -2137,25 +2137,46 @@ HRESULT WINAPI OleSetAutoConvert(REFCLSID clsidOld, REFCLSID clsidNew)
res
=
REGDB_E_CLASSNOTREG
;
goto
done
;
}
if
(
Reg
CreateKeyA
(
hkey
,
"AutoConvertTo"
,
&
hkeyConvert
))
if
(
Reg
SetValueA
(
hkey
,
"AutoConvertTo"
,
REG_SZ
,
szClsidNew
,
strlen
(
szClsidNew
)
+
1
))
{
res
=
REGDB_E_WRITEREGDB
;
goto
done
;
}
if
(
RegSetValueExA
(
hkeyConvert
,
NULL
,
0
,
REG_SZ
,
(
LPBYTE
)
szClsidNew
,
strlen
(
szClsidNew
)
+
1
))
done:
if
(
hkey
)
RegCloseKey
(
hkey
);
return
res
;
}
/******************************************************************************
* CoTreatAsClass [OLE32.46]
*/
HRESULT
WINAPI
CoTreatAsClass
(
REFCLSID
clsidOld
,
REFCLSID
clsidNew
)
{
HKEY
hkey
=
0
;
char
buf
[
200
],
szClsidNew
[
200
];
HRESULT
res
=
S_OK
;
FIXME
(
"(%s,%s)
\n
"
,
debugstr_guid
(
clsidOld
),
debugstr_guid
(
clsidNew
));
sprintf
(
buf
,
"CLSID
\\
"
);
WINE_StringFromCLSID
(
clsidOld
,
&
buf
[
6
]);
WINE_StringFromCLSID
(
clsidNew
,
szClsidNew
);
if
(
RegOpenKeyA
(
HKEY_CLASSES_ROOT
,
buf
,
&
hkey
))
{
res
=
REGDB_E_CLASSNOTREG
;
goto
done
;
}
if
(
RegSetValueA
(
hkey
,
"AutoTreatAs"
,
REG_SZ
,
szClsidNew
,
strlen
(
szClsidNew
)
+
1
))
{
res
=
REGDB_E_WRITEREGDB
;
goto
done
;
}
done:
if
(
hkeyConvert
)
RegCloseKey
(
hkeyConvert
);
if
(
hkey
)
RegCloseKey
(
hkey
);
return
res
;
}
/***********************************************************************
* IsEqualGUID [OLE32.76]
*
...
...
dlls/ole32/ole2stubs.c
View file @
6ea7932c
...
...
@@ -58,15 +58,6 @@ HRESULT WINAPI OleTranslateAccelerator (LPOLEINPLACEFRAME lpFrame,
}
/******************************************************************************
* CoTreatAsClass [OLE32.46]
*/
HRESULT
WINAPI
CoTreatAsClass
(
REFCLSID
clsidOld
,
REFCLSID
clsidNew
)
{
FIXME
(
"(%p,%p), stub!
\n
"
,
clsidOld
,
clsidNew
);
return
S_OK
;
}
/******************************************************************************
* SetConvertStg [OLE32.142]
*/
HRESULT
WINAPI
SetConvertStg
(
LPSTORAGE
pStg
,
BOOL
fConvert
)
...
...
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