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
9281c948
Commit
9281c948
authored
Jan 03, 2006
by
Michael Jung
Committed by
Alexandre Julliard
Jan 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/unixfs: Added unicode support in folder and file pidls.
parent
5136f57f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+0
-0
shlfolder.c
dlls/shell32/tests/shlfolder.c
+5
-8
No files found.
dlls/shell32/shfldr_unixfs.c
View file @
9281c948
This diff is collapsed.
Click to expand it.
dlls/shell32/tests/shlfolder.c
View file @
9281c948
...
...
@@ -370,10 +370,7 @@ static void test_GetDisplayName(void)
/* WinXP stores the filenames as both ANSI and UNICODE in the pidls */
pidlLast
=
pILFindLastID
(
pidlTestFile
);
todo_wine
{
ok
(
pidlLast
->
mkid
.
cb
>=
76
,
"Expected pidl length of at least 76, got %d.
\n
"
,
pidlLast
->
mkid
.
cb
);
}
ok
(
pidlLast
->
mkid
.
cb
>=
76
,
"Expected pidl length of at least 76, got %d.
\n
"
,
pidlLast
->
mkid
.
cb
);
if
(
pidlLast
->
mkid
.
cb
>=
76
)
{
ok
(
!
lstrcmpW
((
WCHAR
*
)
&
pidlLast
->
mkid
.
abID
[
46
],
wszFileName
),
"WinXP stores the filename as a wchar-string at this position!
\n
"
);
...
...
@@ -1163,8 +1160,8 @@ void test_ITEMIDLIST_format(void) {
todo_wine
{
ok
(
pidlFile
->
mkid
.
abID
[
18
]
==
'~'
,
"Should be derived 8.3 name!
\n
"
);
}
if
(
i
==
0
)
/* First file name has an even number of chars. No need for alignment. */
todo_wine
{
ok
(
pidlFile
->
mkid
.
abID
[
12
+
strlen
(
szFile
)
+
1
]
!=
'\0'
,
"Alignment byte, where there shouldn't be!
\n
"
);
}
ok
(
pidlFile
->
mkid
.
abID
[
12
+
strlen
(
szFile
)
+
1
]
!=
'\0'
,
"Alignment byte, where there shouldn't be!
\n
"
);
if
(
i
==
1
)
/* Second file name has an uneven number of chars => alignment byte */
ok
(
pidlFile
->
mkid
.
abID
[
12
+
strlen
(
szFile
)
+
1
]
==
'\0'
,
...
...
@@ -1172,9 +1169,9 @@ void test_ITEMIDLIST_format(void) {
/* The offset of the FileStructW member is stored as a WORD at the end of the pidl. */
cbOffset
=
*
(
WORD
*
)(((
LPBYTE
)
pidlFile
)
+
pidlFile
->
mkid
.
cb
-
sizeof
(
WORD
));
todo_wine
{
ok
(
cbOffset
>=
sizeof
(
struct
FileStructA
)
&&
ok
(
cbOffset
>=
sizeof
(
struct
FileStructA
)
&&
cbOffset
<=
pidlFile
->
mkid
.
cb
-
sizeof
(
struct
FileStructW
),
"Wrong offset value (%d) stored at the end of the PIDL
\n
"
,
cbOffset
);
}
"Wrong offset value (%d) stored at the end of the PIDL
\n
"
,
cbOffset
);
if
(
cbOffset
>=
sizeof
(
struct
FileStructA
)
&&
cbOffset
<=
pidlFile
->
mkid
.
cb
-
sizeof
(
struct
FileStructW
))
...
...
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