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
24bc422c
Commit
24bc422c
authored
Dec 30, 2023
by
Esme Povirk
Committed by
Alexandre Julliard
Jan 02, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree/tests: Add debug code for RemoveDirectory failure.
parent
c6d45b31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
+26
-2
mscoree.c
dlls/mscoree/tests/mscoree.c
+26
-2
No files found.
dlls/mscoree/tests/mscoree.c
View file @
24bc422c
...
...
@@ -630,7 +630,7 @@ static void test_loadpaths_execute(const WCHAR *exe_name, const WCHAR *dll_name,
PROCESS_INFORMATION
pi
;
STARTUPINFOW
si
=
{
0
};
WCHAR
*
ptr
,
*
end
;
DWORD
exit_code
=
0xdeadbeef
;
DWORD
exit_code
=
0xdeadbeef
,
err
;
BOOL
ret
;
ok
(
create_new_dir
(
tmpdir
,
L"loadpaths"
),
...
...
@@ -702,7 +702,31 @@ static void test_loadpaths_execute(const WCHAR *exe_name, const WCHAR *dll_name,
while
(
ptr
>=
end
&&
(
ptr
=
wcsrchr
(
tmpdir
,
'\\'
)))
{
ret
=
RemoveDirectoryW
(
tmpdir
);
ok
(
ret
,
"RemoveDirectoryW(%s) failed: %lu
\n
"
,
debugstr_w
(
tmpdir
),
GetLastError
());
err
=
GetLastError
();
ok
(
ret
,
"RemoveDirectoryW(%s) failed: %lu
\n
"
,
debugstr_w
(
tmpdir
),
err
);
if
(
!
ret
&&
err
==
ERROR_DIR_NOT_EMPTY
)
{
WIN32_FIND_DATAW
fd
;
HANDLE
hfind
;
wcscat
(
tmpdir
,
L"
\\
*"
);
hfind
=
FindFirstFileW
(
tmpdir
,
&
fd
);
while
(
hfind
!=
INVALID_HANDLE_VALUE
&&
(
!
wcscmp
(
fd
.
cFileName
,
L"."
)
||
!
wcscmp
(
fd
.
cFileName
,
L".."
)))
{
if
(
!
FindNextFileW
(
hfind
,
&
fd
))
{
FindClose
(
hfind
);
hfind
=
INVALID_HANDLE_VALUE
;
}
}
if
(
hfind
!=
INVALID_HANDLE_VALUE
)
{
trace
(
"file %s still present in tmpdir
\n
"
,
debugstr_w
(
fd
.
cFileName
));
FindClose
(
hfind
);
}
}
*
ptr
=
'\0'
;
}
}
...
...
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