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
bf0ffb2d
Commit
bf0ffb2d
authored
Oct 07, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Oct 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Cleanup after SetupCopyOEMInf() tests.
parent
28ae6361
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
misc.c
dlls/setupapi/tests/misc.c
+20
-3
No files found.
dlls/setupapi/tests/misc.c
View file @
bf0ffb2d
...
...
@@ -209,9 +209,8 @@ static void test_SetupCopyOEMInf(void)
return
;
}
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
||
GetLastError
()
==
ERROR_FILE_EXISTS
,
/* Win98 */
"Expected ERROR_FILE_NOT_FOUND or ERROR_FILE_EXISTS, got %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
GetLastError
());
ok
(
file_exists
(
tmpfile
),
"Expected tmpfile to exist
\n
"
);
/* try SP_COPY_REPLACEONLY, dest does not exist */
...
...
@@ -307,6 +306,24 @@ static void test_SetupCopyOEMInf(void)
ok
(
res
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
res
);
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
GetLastError
());
ok
(
!
file_exists
(
path
),
"Expected source inf to not exist
\n
"
);
if
(
pSetupUninstallOEMInfA
)
{
char
*
destfile
=
strrchr
(
dest
,
'\\'
)
+
1
;
SetLastError
(
0xdeadbeef
);
ok
(
pSetupUninstallOEMInfA
(
destfile
,
0
,
NULL
),
"Failed to uninstall '%s' : %d
\n
"
,
destfile
,
GetLastError
());
}
else
{
/* Win9x/WinMe */
SetLastError
(
0xdeadbeef
);
ok
(
DeleteFileA
(
dest
),
"Failed to delete file '%s' : %d
\n
"
,
dest
,
GetLastError
());
/* On WinMe we also need to remove the .pnf file */
*
(
strrchr
(
dest
,
'.'
)
+
1
)
=
'p'
;
DeleteFileA
(
dest
);
}
}
static
void
create_source_file
(
LPSTR
filename
,
const
BYTE
*
data
,
DWORD
size
)
...
...
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