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
4abebb8e
Commit
4abebb8e
authored
Jan 18, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: There is no need to check strings for NULL when using debugstr_w().
Also don't put single quotes around '%s' in that case.
parent
6834945e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
shlexec.c
dlls/shell32/shlexec.c
+4
-5
No files found.
dlls/shell32/shlexec.c
View file @
4abebb8e
...
...
@@ -576,7 +576,7 @@ UINT SHELL_FindExecutable(LPCWSTR lpPath, LPCWSTR lpFile, LPCWSTR lpOperation,
WCHAR
xlpFile
[
256
];
/* result of SearchPath */
DWORD
attribs
;
/* file attributes */
TRACE
(
"%s
\n
"
,
(
lpFile
!=
NULL
)
?
debugstr_w
(
lpFile
)
:
"-"
);
TRACE
(
"%s
\n
"
,
debugstr_w
(
lpFile
)
);
if
(
!
lpResult
)
return
ERROR_INVALID_PARAMETER
;
...
...
@@ -828,7 +828,7 @@ static unsigned dde_connect(WCHAR* key, const WCHAR* start, WCHAR* ddeexec,
if
(
!
hConv
)
{
static
const
WCHAR
wIfexec
[]
=
{
'\\'
,
'i'
,
'f'
,
'e'
,
'x'
,
'e'
,
'c'
,
0
};
TRACE
(
"Launching
'%s'
\n
"
,
debugstr_w
(
start
));
TRACE
(
"Launching
%s
\n
"
,
debugstr_w
(
start
));
ret
=
execfunc
(
start
,
env
,
TRUE
,
psei
,
psei_out
);
if
(
ret
<=
32
)
{
...
...
@@ -1009,8 +1009,7 @@ HINSTANCE WINAPI FindExecutableW(LPCWSTR lpFile, LPCWSTR lpDirectory, LPWSTR lpR
UINT_PTR
retval
=
SE_ERR_NOASSOC
;
WCHAR
old_dir
[
1024
];
TRACE
(
"File %s, Dir %s
\n
"
,
(
lpFile
!=
NULL
?
debugstr_w
(
lpFile
)
:
"-"
),
(
lpDirectory
!=
NULL
?
debugstr_w
(
lpDirectory
)
:
"-"
));
TRACE
(
"File %s, Dir %s
\n
"
,
debugstr_w
(
lpFile
),
debugstr_w
(
lpDirectory
));
lpResult
[
0
]
=
'\0'
;
/* Start off with an empty return string */
if
(
lpFile
==
NULL
)
...
...
@@ -1413,7 +1412,7 @@ BOOL SHELL_execute( LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc )
wszParameters
,
sizeof
(
wszParameters
)
/
sizeof
(
WCHAR
));
/* FIXME: get the extension of lpFile, check if it fits to the lpClass */
TRACE
(
"SEE_MASK_CLASSNAME->
'%s', doc->'%s'
\n
"
,
debugstr_w
(
wszParameters
),
debugstr_w
(
wszApplicationName
));
TRACE
(
"SEE_MASK_CLASSNAME->
%s, doc->%s
\n
"
,
debugstr_w
(
wszParameters
),
debugstr_w
(
wszApplicationName
));
wcmd
[
0
]
=
'\0'
;
done
=
SHELL_ArgifyW
(
wcmd
,
sizeof
(
wcmd
)
/
sizeof
(
WCHAR
),
wszParameters
,
wszApplicationName
,
sei_tmp
.
lpIDList
,
NULL
,
&
resultLen
);
...
...
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