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
f6990085
Commit
f6990085
authored
Dec 29, 2010
by
Greg Geldorp
Committed by
Alexandre Julliard
Dec 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Uninstall .pnf if uninstall of .inf failed.
parent
b00117d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
misc.c
dlls/setupapi/tests/misc.c
+18
-1
No files found.
dlls/setupapi/tests/misc.c
View file @
f6990085
...
@@ -312,17 +312,34 @@ static void test_SetupCopyOEMInf(void)
...
@@ -312,17 +312,34 @@ static void test_SetupCopyOEMInf(void)
if
(
pSetupUninstallOEMInfA
)
if
(
pSetupUninstallOEMInfA
)
{
{
char
pnf
[
MAX_PATH
];
char
*
pnffile
;
char
*
destfile
=
strrchr
(
dest
,
'\\'
)
+
1
;
char
*
destfile
=
strrchr
(
dest
,
'\\'
)
+
1
;
strcpy
(
pnf
,
dest
);
*
(
strrchr
(
pnf
,
'.'
)
+
1
)
=
'p'
;
pnffile
=
strrchr
(
pnf
,
'\\'
)
+
1
;
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
res
=
pSetupUninstallOEMInfA
(
destfile
,
0
,
NULL
);
res
=
pSetupUninstallOEMInfA
(
destfile
,
0
,
NULL
);
ok
(
res
,
"Failed to uninstall '%s' : %d
\n
"
,
destfile
,
GetLastError
());
if
(
!
res
)
if
(
!
res
)
res
=
pSetupUninstallOEMInfA
(
pnffile
,
0
,
NULL
);
ok
(
res
,
"Failed to uninstall '%s'/'%s' : %d
\n
"
,
destfile
,
pnffile
,
GetLastError
());
todo_wine
ok
(
!
file_exists
(
dest
),
"Expected inf '%s' to not exist
\n
"
,
dest
);
if
(
file_exists
(
dest
))
{
{
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
res
=
DeleteFileA
(
dest
);
res
=
DeleteFileA
(
dest
);
ok
(
res
,
"Failed to delete file '%s' : %d
\n
"
,
dest
,
GetLastError
());
ok
(
res
,
"Failed to delete file '%s' : %d
\n
"
,
dest
,
GetLastError
());
}
}
ok
(
!
file_exists
(
pnf
),
"Expected pnf '%s' to not exist
\n
"
,
pnf
);
if
(
file_exists
(
pnf
))
{
SetLastError
(
0xdeadbeef
);
res
=
DeleteFileA
(
pnf
);
ok
(
res
,
"Failed to delete file '%s' : %d
\n
"
,
pnf
,
GetLastError
());
}
}
}
else
else
{
{
...
...
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