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
fa417e28
Commit
fa417e28
authored
Sep 22, 2004
by
Martin Fuchs
Committed by
Alexandre Julliard
Sep 22, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement IShellLinkA::Resolve and IShellLinkW::Resolve.
parent
c6516740
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
4 deletions
+69
-4
shelllink.c
dlls/shell32/shelllink.c
+69
-4
No files found.
dlls/shell32/shelllink.c
View file @
fa417e28
...
...
@@ -1299,10 +1299,43 @@ static HRESULT WINAPI IShellLinkA_fnSetRelativePath(IShellLinkA * iface, LPCSTR
static
HRESULT
WINAPI
IShellLinkA_fnResolve
(
IShellLinkA
*
iface
,
HWND
hwnd
,
DWORD
fFlags
)
{
IShellLinkImpl
*
This
=
(
IShellLinkImpl
*
)
iface
;
HRESULT
hr
=
S_OK
;
FIXME
(
"(%p)->(hwnd=%p flags=%lx)
\n
"
,
This
,
hwnd
,
fFlags
);
return
S_OK
;
IShellLinkImpl
*
This
=
(
IShellLinkImpl
*
)
iface
;
FIXME
(
"(%p)->(hwnd=%p flags=%lx)
\n
"
,
This
,
hwnd
,
fFlags
);
/*FIXME: use IResolveShellLink interface */
if
(
!
This
->
sPath
&&
This
->
pPidl
)
{
WCHAR
buffer
[
MAX_PATH
];
hr
=
SHELL_GetPathFromIDListW
(
This
->
pPidl
,
buffer
,
MAX_PATH
);
if
(
SUCCEEDED
(
hr
)
&&
*
buffer
)
{
This
->
sPath
=
(
LPWSTR
)
HeapAlloc
(
GetProcessHeap
(),
0
,
(
lstrlenW
(
buffer
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
This
->
sPath
)
return
E_OUTOFMEMORY
;
lstrcpyW
(
This
->
sPath
,
buffer
);
This
->
bDirty
=
TRUE
;
}
else
hr
=
S_OK
;
/* don't report any error occured while just caching information */
}
if
(
!
This
->
sIcoPath
&&
This
->
sPath
)
{
This
->
sIcoPath
=
(
LPWSTR
)
HeapAlloc
(
GetProcessHeap
(),
0
,
(
lstrlenW
(
This
->
sPath
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
This
->
sIcoPath
)
return
E_OUTOFMEMORY
;
lstrcpyW
(
This
->
sIcoPath
,
This
->
sPath
);
This
->
iIcoNdx
=
0
;
This
->
bDirty
=
TRUE
;
}
return
hr
;
}
static
HRESULT
WINAPI
IShellLinkA_fnSetPath
(
IShellLinkA
*
iface
,
LPCSTR
pszFile
)
...
...
@@ -1683,11 +1716,43 @@ static HRESULT WINAPI IShellLinkW_fnSetRelativePath(IShellLinkW * iface, LPCWSTR
static
HRESULT
WINAPI
IShellLinkW_fnResolve
(
IShellLinkW
*
iface
,
HWND
hwnd
,
DWORD
fFlags
)
{
HRESULT
hr
=
S_OK
;
_ICOM_THIS_From_IShellLinkW
(
IShellLinkImpl
,
iface
);
FIXME
(
"(%p)->(hwnd=%p flags=%lx)
\n
"
,
This
,
hwnd
,
fFlags
);
return
S_OK
;
/*FIXME: use IResolveShellLink interface */
if
(
!
This
->
sPath
&&
This
->
pPidl
)
{
WCHAR
buffer
[
MAX_PATH
];
hr
=
SHELL_GetPathFromIDListW
(
This
->
pPidl
,
buffer
,
MAX_PATH
);
if
(
SUCCEEDED
(
hr
)
&&
*
buffer
)
{
This
->
sPath
=
(
LPWSTR
)
HeapAlloc
(
GetProcessHeap
(),
0
,
(
lstrlenW
(
buffer
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
This
->
sPath
)
return
E_OUTOFMEMORY
;
lstrcpyW
(
This
->
sPath
,
buffer
);
This
->
bDirty
=
TRUE
;
}
else
hr
=
S_OK
;
/* don't report any error occured while just caching information */
}
if
(
!
This
->
sIcoPath
&&
This
->
sPath
)
{
This
->
sIcoPath
=
(
LPWSTR
)
HeapAlloc
(
GetProcessHeap
(),
0
,
(
lstrlenW
(
This
->
sPath
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
This
->
sIcoPath
)
return
E_OUTOFMEMORY
;
lstrcpyW
(
This
->
sIcoPath
,
This
->
sPath
);
This
->
iIcoNdx
=
0
;
This
->
bDirty
=
TRUE
;
}
return
hr
;
}
static
HRESULT
WINAPI
IShellLinkW_fnSetPath
(
IShellLinkW
*
iface
,
LPCWSTR
pszFile
)
...
...
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