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
4a9d838c
Commit
4a9d838c
authored
Sep 12, 2005
by
Juan Lang
Committed by
Alexandre Julliard
Sep 12, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove an annoying dialog when trying to clean up a directory.
parent
7647cffb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
shellpath.c
dlls/shell32/tests/shellpath.c
+6
-12
No files found.
dlls/shell32/tests/shellpath.c
View file @
4a9d838c
...
...
@@ -827,13 +827,13 @@ static void testNonExistentPath(void)
modifiedPath
[
len
++
]
=
'\0'
;
if
(
winetest_interactive
)
printf
(
"Changing CSIDL_FAVORITES to %s
\n
"
,
modifiedPath
);
if
(
!
RegSetValueExA
(
key
,
"Favorites"
,
0
,
type
,
(
LPBYTE
)
modifiedPath
,
len
))
if
(
!
RegSetValueExA
(
key
,
"Favorites"
,
0
,
type
,
(
LPBYTE
)
modifiedPath
,
len
))
{
char
buffer
[
MAX_PATH
];
STARTUPINFOA
startup
;
PROCESS_INFORMATION
info
;
HRESULT
hr
;
SHFILEOPSTRUCTA
shFileOp
;
wnsprintfA
(
buffer
,
sizeof
(
buffer
),
"%s tests/shellpath.c 1"
,
selfname
);
...
...
@@ -869,16 +869,10 @@ static void testNonExistentPath(void)
ok
(
WaitForSingleObject
(
info
.
hProcess
,
30000
)
==
WAIT_OBJECT_0
,
"child process termination
\n
"
);
/* Remove the directory. In some Windows versions, it
* contains the system file desktop.ini, so use SHFileOperation
* to remove it and its contents.
*/
shFileOp
.
hwnd
=
NULL
;
shFileOp
.
wFunc
=
FO_DELETE
;
shFileOp
.
pFrom
=
modifiedPath
;
shFileOp
.
fFlags
=
FOF_NOCONFIRMATION
|
FOF_NOERRORUI
|
FOF_SILENT
;
SHFileOperationA
(
&
shFileOp
);
strcpy
(
buffer
,
modifiedPath
);
strcat
(
buffer
,
"
\\
desktop.ini"
);
DeleteFileA
(
buffer
);
RemoveDirectoryA
(
modifiedPath
);
}
}
else
if
(
winetest_interactive
)
...
...
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