Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c3760e7d
Commit
c3760e7d
authored
Aug 08, 2005
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Aug 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove trailing backslash.
parent
0c206b94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
shlfileop.c
dlls/shell32/tests/shlfileop.c
+7
-0
shlfolder.c
dlls/shell32/tests/shlfolder.c
+10
-0
No files found.
dlls/shell32/tests/shlfileop.c
View file @
c3760e7d
...
...
@@ -64,7 +64,14 @@ static BOOL file_exists(const CHAR *name)
/* initializes the tests */
static
void
init_shfo_tests
(
void
)
{
int
len
;
GetCurrentDirectoryA
(
MAX_PATH
,
CURR_DIR
);
len
=
lstrlenA
(
CURR_DIR
);
if
(
len
&&
(
CURR_DIR
[
len
-
1
]
==
'\\'
))
CURR_DIR
[
len
-
1
]
=
0
;
createTestFile
(
".
\\
test1.txt"
);
createTestFile
(
".
\\
test2.txt"
);
createTestFile
(
".
\\
test3.txt"
);
...
...
dlls/shell32/tests/shlfolder.c
View file @
c3760e7d
...
...
@@ -621,9 +621,19 @@ static void test_EnumObjects_and_CompareIDs(void)
char
cCurrDirA
[
MAX_PATH
]
=
{
0
};
WCHAR
cCurrDirW
[
MAX_PATH
];
static
const
WCHAR
cTestDirW
[]
=
{
'\\'
,
't'
,
'e'
,
's'
,
't'
,
'd'
,
'i'
,
'r'
,
0
};
int
len
;
HRESULT
hr
;
GetCurrentDirectoryA
(
MAX_PATH
,
cCurrDirA
);
len
=
lstrlenA
(
cCurrDirA
);
if
(
len
==
0
)
{
trace
(
"GetCurrentDirectoryA returned empty string. Skipping test_EnumObjects_and_CompareIDs
\n
"
);
return
;
}
if
(
cCurrDirA
[
len
-
1
]
==
'\\'
)
cCurrDirA
[
len
-
1
]
=
0
;
MultiByteToWideChar
(
CP_ACP
,
0
,
cCurrDirA
,
-
1
,
cCurrDirW
,
MAX_PATH
);
strcatW
(
cCurrDirW
,
cTestDirW
);
...
...
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