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
15cd338d
Commit
15cd338d
authored
Aug 16, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Remove unused parameters from conversion helper.
parent
5c4f2374
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
shelllink.c
dlls/shell32/shelllink.c
+8
-8
No files found.
dlls/shell32/shelllink.c
View file @
15cd338d
...
...
@@ -208,10 +208,10 @@ static inline IShellLinkImpl *impl_from_IObjectWithSite(IObjectWithSite *iface)
static
HRESULT
ShellLink_UpdatePath
(
LPCWSTR
sPathRel
,
LPCWSTR
path
,
LPCWSTR
sWorkDir
,
LPWSTR
*
psPath
);
/* strdup on the process heap */
static
inline
LPWSTR
HEAP_strdupAtoW
(
HANDLE
heap
,
DWORD
flags
,
LPCSTR
str
)
static
inline
LPWSTR
heap_strdupAtoW
(
LPCSTR
str
)
{
INT
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
NULL
,
0
);
LPWSTR
p
=
HeapAlloc
(
heap
,
flags
,
len
*
sizeof
(
WCHAR
)
);
LPWSTR
p
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
if
(
!
p
)
return
p
;
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
p
,
len
);
...
...
@@ -1420,7 +1420,7 @@ static HRESULT WINAPI IShellLinkA_fnSetDescription(IShellLinkA *iface, LPCSTR ps
if
(
pszName
)
{
descrW
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
pszName
);
descrW
=
heap_strdupAtoW
(
pszName
);
if
(
!
descrW
)
return
E_OUTOFMEMORY
;
}
else
...
...
@@ -1456,7 +1456,7 @@ static HRESULT WINAPI IShellLinkA_fnSetWorkingDirectory(IShellLinkA *iface, LPCS
TRACE
(
"(%p)->(dir=%s)
\n
"
,
This
,
pszDir
);
dirW
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
pszDir
);
dirW
=
heap_strdupAtoW
(
pszDir
);
if
(
!
dirW
)
return
E_OUTOFMEMORY
;
hr
=
IShellLinkW_SetWorkingDirectory
(
&
This
->
IShellLinkW_iface
,
dirW
);
...
...
@@ -1490,7 +1490,7 @@ static HRESULT WINAPI IShellLinkA_fnSetArguments(IShellLinkA *iface, LPCSTR pszA
if
(
pszArgs
)
{
argsW
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
pszArgs
);
argsW
=
heap_strdupAtoW
(
pszArgs
);
if
(
!
argsW
)
return
E_OUTOFMEMORY
;
}
else
...
...
@@ -1552,7 +1552,7 @@ static HRESULT WINAPI IShellLinkA_fnSetIconLocation(IShellLinkA *iface, LPCSTR p
TRACE
(
"(%p)->(path=%s iicon=%u)
\n
"
,
This
,
pszIconPath
,
iIcon
);
pathW
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
pszIconPath
);
pathW
=
heap_strdupAtoW
(
pszIconPath
);
if
(
!
pathW
)
return
E_OUTOFMEMORY
;
hr
=
IShellLinkW_SetIconLocation
(
&
This
->
IShellLinkW_iface
,
pathW
,
iIcon
);
...
...
@@ -1570,7 +1570,7 @@ static HRESULT WINAPI IShellLinkA_fnSetRelativePath(IShellLinkA *iface, LPCSTR p
TRACE
(
"(%p)->(path=%s %x)
\n
"
,
This
,
pszPathRel
,
dwReserved
);
pathW
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
pszPathRel
);
pathW
=
heap_strdupAtoW
(
pszPathRel
);
if
(
!
pathW
)
return
E_OUTOFMEMORY
;
hr
=
IShellLinkW_SetRelativePath
(
&
This
->
IShellLinkW_iface
,
pathW
,
dwReserved
);
...
...
@@ -1598,7 +1598,7 @@ static HRESULT WINAPI IShellLinkA_fnSetPath(IShellLinkA *iface, LPCSTR pszFile)
if
(
!
pszFile
)
return
E_INVALIDARG
;
str
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
pszFile
);
str
=
heap_strdupAtoW
(
pszFile
);
if
(
!
str
)
return
E_OUTOFMEMORY
;
...
...
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