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
506f77f5
Commit
506f77f5
authored
Sep 12, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Use a helper to trace the type of a STRRET.
parent
8cb3ede4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
14 deletions
+19
-14
shellstring.c
dlls/shell32/shellstring.c
+19
-14
No files found.
dlls/shell32/shellstring.c
View file @
506f77f5
...
...
@@ -42,14 +42,24 @@ WINE_DEFAULT_DEBUG_CHANNEL(shell);
/************************* STRRET functions ****************************/
static
const
char
*
debugstr_strret
(
STRRET
*
s
)
{
switch
(
s
->
uType
)
{
case
STRRET_WSTR
:
return
"STRRET_WSTR"
;
case
STRRET_CSTR
:
return
"STRRET_CSTR"
;
case
STRRET_OFFSET
:
return
"STRRET_OFFSET"
;
default:
return
"STRRET_???"
;
}
}
BOOL
WINAPI
StrRetToStrNA
(
LPSTR
dest
,
DWORD
len
,
LPSTRRET
src
,
const
ITEMIDLIST
*
pidl
)
{
TRACE
(
"dest=%p len=0x%x strret=%p(%s) pidl=%p
\n
"
,
dest
,
len
,
src
,
(
src
->
uType
==
STRRET_WSTR
)
?
"STRRET_WSTR"
:
(
src
->
uType
==
STRRET_CSTR
)
?
"STRRET_CSTR"
:
(
src
->
uType
==
STRRET_OFFSET
)
?
"STRRET_OFFSET"
:
"STRRET_???"
,
pidl
);
TRACE
(
"dest=%p len=0x%x strret=%p(%s) pidl=%p
\n
"
,
dest
,
len
,
src
,
debugstr_strret
(
src
),
pidl
);
if
(
!
dest
)
return
FALSE
;
...
...
@@ -70,7 +80,7 @@ BOOL WINAPI StrRetToStrNA(LPSTR dest, DWORD len, LPSTRRET src, const ITEMIDLIST
break
;
default:
FIXME
(
"unknown type!
\n
"
);
FIXME
(
"unknown type %u!
\n
"
,
src
->
uType
);
if
(
len
)
*
dest
=
'\0'
;
return
FALSE
;
}
...
...
@@ -82,12 +92,7 @@ BOOL WINAPI StrRetToStrNA(LPSTR dest, DWORD len, LPSTRRET src, const ITEMIDLIST
BOOL
WINAPI
StrRetToStrNW
(
LPWSTR
dest
,
DWORD
len
,
LPSTRRET
src
,
const
ITEMIDLIST
*
pidl
)
{
TRACE
(
"dest=%p len=0x%x strret=%p(%s) pidl=%p
\n
"
,
dest
,
len
,
src
,
(
src
->
uType
==
STRRET_WSTR
)
?
"STRRET_WSTR"
:
(
src
->
uType
==
STRRET_CSTR
)
?
"STRRET_CSTR"
:
(
src
->
uType
==
STRRET_OFFSET
)
?
"STRRET_OFFSET"
:
"STRRET_???"
,
pidl
);
TRACE
(
"dest=%p len=0x%x strret=%p(%s) pidl=%p
\n
"
,
dest
,
len
,
src
,
debugstr_strret
(
src
),
pidl
);
if
(
!
dest
)
return
FALSE
;
...
...
@@ -110,7 +115,7 @@ BOOL WINAPI StrRetToStrNW(LPWSTR dest, DWORD len, LPSTRRET src, const ITEMIDLIST
break
;
default:
FIXME
(
"unknown type!
\n
"
);
FIXME
(
"unknown type %u!
\n
"
,
src
->
uType
);
if
(
len
)
*
dest
=
'\0'
;
return
FALSE
;
}
...
...
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