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
b6ad9e57
Commit
b6ad9e57
authored
Mar 26, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Use COM wrappers for IShellPropSheetExt and IShellExtInit.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4bbb43d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
shellord.c
dlls/shell32/shellord.c
+8
-8
No files found.
dlls/shell32/shellord.c
View file @
b6ad9e57
...
@@ -1674,7 +1674,7 @@ UINT WINAPI SHAddFromPropSheetExtArray(HPSXA hpsxa, LPFNADDPROPSHEETPAGE lpfnAdd
...
@@ -1674,7 +1674,7 @@ UINT WINAPI SHAddFromPropSheetExtArray(HPSXA hpsxa, LPFNADDPROPSHEETPAGE lpfnAdd
/* Call the AddPage method of all registered IShellPropSheetExt interfaces */
/* Call the AddPage method of all registered IShellPropSheetExt interfaces */
for
(
i
=
0
;
i
!=
psxa
->
uiCount
;
i
++
)
for
(
i
=
0
;
i
!=
psxa
->
uiCount
;
i
++
)
{
{
psxa
->
pspsx
[
i
]
->
lpVtbl
->
AddPages
(
psxa
->
pspsx
[
i
],
PsxaCall
,
(
LPARAM
)
&
Call
);
IShellPropSheetExt_
AddPages
(
psxa
->
pspsx
[
i
],
PsxaCall
,
(
LPARAM
)
&
Call
);
}
}
return
Call
.
uiCount
;
return
Call
.
uiCount
;
...
@@ -1764,21 +1764,21 @@ HPSXA WINAPI SHCreatePropSheetExtArrayEx(HKEY hKey, LPCWSTR pszSubKey, UINT max_
...
@@ -1764,21 +1764,21 @@ HPSXA WINAPI SHCreatePropSheetExtArrayEx(HKEY hKey, LPCWSTR pszSubKey, UINT max_
Then call IShellExtInit's Initialize method. */
Then call IShellExtInit's Initialize method. */
if
(
SUCCEEDED
(
CoCreateInstance
(
&
clsid
,
NULL
,
CLSCTX_INPROC_SERVER
/* | CLSCTX_NO_CODE_DOWNLOAD */
,
&
IID_IShellPropSheetExt
,
(
LPVOID
*
)
&
pspsx
)))
if
(
SUCCEEDED
(
CoCreateInstance
(
&
clsid
,
NULL
,
CLSCTX_INPROC_SERVER
/* | CLSCTX_NO_CODE_DOWNLOAD */
,
&
IID_IShellPropSheetExt
,
(
LPVOID
*
)
&
pspsx
)))
{
{
if
(
SUCCEEDED
(
pspsx
->
lpVtbl
->
QueryInterface
(
pspsx
,
&
IID_IShellExtInit
,
(
PVOID
*
)
&
psxi
)))
if
(
SUCCEEDED
(
IShellPropSheetExt_
QueryInterface
(
pspsx
,
&
IID_IShellExtInit
,
(
PVOID
*
)
&
psxi
)))
{
{
if
(
SUCCEEDED
(
psxi
->
lpVtbl
->
Initialize
(
psxi
,
NULL
,
pDataObj
,
hKey
)))
if
(
SUCCEEDED
(
IShellExtInit_
Initialize
(
psxi
,
NULL
,
pDataObj
,
hKey
)))
{
{
/* Add the IShellPropSheetExt instance to the array */
/* Add the IShellPropSheetExt instance to the array */
psxa
->
pspsx
[
psxa
->
uiCount
++
]
=
pspsx
;
psxa
->
pspsx
[
psxa
->
uiCount
++
]
=
pspsx
;
}
}
else
else
{
{
psxi
->
lpVtbl
->
Release
(
psxi
);
IShellExtInit_
Release
(
psxi
);
pspsx
->
lpVtbl
->
Release
(
pspsx
);
IShellPropSheetExt_
Release
(
pspsx
);
}
}
}
}
else
else
pspsx
->
lpVtbl
->
Release
(
pspsx
);
IShellPropSheetExt_
Release
(
pspsx
);
}
}
}
}
...
@@ -1821,7 +1821,7 @@ UINT WINAPI SHReplaceFromPropSheetExtArray(HPSXA hpsxa, UINT uPageID, LPFNADDPRO
...
@@ -1821,7 +1821,7 @@ UINT WINAPI SHReplaceFromPropSheetExtArray(HPSXA hpsxa, UINT uPageID, LPFNADDPRO
for
(
i
=
0
;
i
!=
psxa
->
uiCount
;
i
++
)
for
(
i
=
0
;
i
!=
psxa
->
uiCount
;
i
++
)
{
{
Call
.
bCalled
=
FALSE
;
Call
.
bCalled
=
FALSE
;
psxa
->
pspsx
[
i
]
->
lpVtbl
->
ReplacePage
(
psxa
->
pspsx
[
i
],
uPageID
,
PsxaCall
,
(
LPARAM
)
&
Call
);
IShellPropSheetExt_
ReplacePage
(
psxa
->
pspsx
[
i
],
uPageID
,
PsxaCall
,
(
LPARAM
)
&
Call
);
}
}
return
Call
.
uiCount
;
return
Call
.
uiCount
;
...
@@ -1844,7 +1844,7 @@ void WINAPI SHDestroyPropSheetExtArray(HPSXA hpsxa)
...
@@ -1844,7 +1844,7 @@ void WINAPI SHDestroyPropSheetExtArray(HPSXA hpsxa)
{
{
for
(
i
=
0
;
i
!=
psxa
->
uiCount
;
i
++
)
for
(
i
=
0
;
i
!=
psxa
->
uiCount
;
i
++
)
{
{
psxa
->
pspsx
[
i
]
->
lpVtbl
->
Release
(
psxa
->
pspsx
[
i
]);
IShellPropSheetExt_
Release
(
psxa
->
pspsx
[
i
]);
}
}
LocalFree
(
psxa
);
LocalFree
(
psxa
);
...
...
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