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
8fca00e0
Commit
8fca00e0
authored
Oct 27, 2005
by
Michael Jung
Committed by
Alexandre Julliard
Oct 27, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented UnixFolder's IPersistPropertyBag::Load method.
parent
c1d07134
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
4 deletions
+28
-4
Makefile.in
dlls/shell32/Makefile.in
+1
-1
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+26
-2
shlfolder.c
dlls/shell32/tests/shlfolder.c
+1
-1
No files found.
dlls/shell32/Makefile.in
View file @
8fca00e0
...
@@ -6,7 +6,7 @@ VPATH = @srcdir@
...
@@ -6,7 +6,7 @@ VPATH = @srcdir@
MODULE
=
shell32.dll
MODULE
=
shell32.dll
IMPORTLIB
=
libshell32.
$(IMPLIBEXT)
IMPORTLIB
=
libshell32.
$(IMPLIBEXT)
IMPORTS
=
shlwapi comctl32 user32 gdi32 advapi32 kernel32 ntdll
IMPORTS
=
shlwapi comctl32 user32 gdi32 advapi32 kernel32 ntdll
DELAYIMPORTS
=
ole32
DELAYIMPORTS
=
ole32
oleaut32
EXTRALIBS
=
-luuid
$(LIBUNICODE)
EXTRALIBS
=
-luuid
$(LIBUNICODE)
C_SRCS
=
\
C_SRCS
=
\
...
...
dlls/shell32/shfldr_unixfs.c
View file @
8fca00e0
...
@@ -1307,8 +1307,32 @@ static HRESULT WINAPI UnixFolder_IPersistPropertyBag_InitNew(IPersistPropertyBag
...
@@ -1307,8 +1307,32 @@ static HRESULT WINAPI UnixFolder_IPersistPropertyBag_InitNew(IPersistPropertyBag
static
HRESULT
WINAPI
UnixFolder_IPersistPropertyBag_Load
(
IPersistPropertyBag
*
iface
,
static
HRESULT
WINAPI
UnixFolder_IPersistPropertyBag_Load
(
IPersistPropertyBag
*
iface
,
IPropertyBag
*
pPropertyBag
,
IErrorLog
*
pErrorLog
)
IPropertyBag
*
pPropertyBag
,
IErrorLog
*
pErrorLog
)
{
{
FIXME
(
"() stub
\n
"
);
UnixFolder
*
This
=
ADJUST_THIS
(
UnixFolder
,
IPersistPropertyBag
,
iface
);
return
E_NOTIMPL
;
static
const
WCHAR
wszTarget
[]
=
{
'T'
,
'a'
,
'r'
,
'g'
,
'e'
,
't'
,
0
},
wszNull
[]
=
{
0
};
PERSIST_FOLDER_TARGET_INFO
pftiTarget
;
VARIANT
var
;
HRESULT
hr
;
TRACE
(
"(iface=%p, pPropertyBag=%p, pErrorLog=%p)
\n
"
,
iface
,
pPropertyBag
,
pErrorLog
);
if
(
!
pPropertyBag
)
return
E_POINTER
;
/* Get 'Target' property from the property bag. */
V_VT
(
&
var
)
=
VT_BSTR
;
hr
=
IPropertyBag_Read
(
pPropertyBag
,
wszTarget
,
&
var
,
NULL
);
if
(
FAILED
(
hr
))
return
E_FAIL
;
lstrcpyW
(
pftiTarget
.
szTargetParsingName
,
V_BSTR
(
&
var
));
SysFreeString
(
V_BSTR
(
&
var
));
pftiTarget
.
pidlTargetFolder
=
NULL
;
lstrcpyW
(
pftiTarget
.
szNetworkProvider
,
wszNull
);
pftiTarget
.
dwAttributes
=
-
1
;
pftiTarget
.
csidl
=
-
1
;
return
UnixFolder_IPersistFolder3_InitializeEx
(
STATIC_CAST
(
IPersistFolder3
,
This
),
NULL
,
NULL
,
&
pftiTarget
);
}
}
static
HRESULT
WINAPI
UnixFolder_IPersistPropertyBag_Save
(
IPersistPropertyBag
*
iface
,
static
HRESULT
WINAPI
UnixFolder_IPersistPropertyBag_Save
(
IPersistPropertyBag
*
iface
,
...
...
dlls/shell32/tests/shlfolder.c
View file @
8fca00e0
...
@@ -872,7 +872,7 @@ void test_FolderShortcut(void) {
...
@@ -872,7 +872,7 @@ void test_FolderShortcut(void) {
if
(
FAILED
(
hr
))
return
;
if
(
FAILED
(
hr
))
return
;
hr
=
IPersistPropertyBag_Load
(
pPersistPropertyBag
,
&
InitPropertyBag
,
NULL
);
hr
=
IPersistPropertyBag_Load
(
pPersistPropertyBag
,
&
InitPropertyBag
,
NULL
);
todo_wine
{
ok
(
SUCCEEDED
(
hr
),
"IPersistPropertyBag_Load failed! hr = %08lx
\n
"
,
hr
);
}
ok
(
SUCCEEDED
(
hr
),
"IPersistPropertyBag_Load failed! hr = %08lx
\n
"
,
hr
);
if
(
FAILED
(
hr
))
{
if
(
FAILED
(
hr
))
{
IPersistPropertyBag_Release
(
pPersistPropertyBag
);
IPersistPropertyBag_Release
(
pPersistPropertyBag
);
return
;
return
;
...
...
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