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
405b96e9
Commit
405b96e9
authored
Mar 28, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Mar 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: SetLastError to ERROR_SUCCESS on success.
parent
672952d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
misc.c
dlls/setupapi/misc.c
+2
-0
misc.c
dlls/setupapi/tests/misc.c
+1
-4
No files found.
dlls/setupapi/misc.c
View file @
405b96e9
...
...
@@ -921,6 +921,7 @@ done:
MyFree
(
destW
);
HeapFree
(
GetProcessHeap
(),
0
,
sourceW
);
HeapFree
(
GetProcessHeap
(),
0
,
locationW
);
if
(
ret
)
SetLastError
(
ERROR_SUCCESS
);
return
ret
;
}
...
...
@@ -980,6 +981,7 @@ BOOL WINAPI SetupCopyOEMInfW( PCWSTR source, PCWSTR location,
if
(
component
)
*
component
=
p
+
1
;
if
(
required_size
)
*
required_size
=
size
;
if
(
ret
)
SetLastError
(
ERROR_SUCCESS
);
return
ret
;
}
...
...
dlls/setupapi/tests/misc.c
View file @
405b96e9
...
...
@@ -243,11 +243,8 @@ static void test_SetupCopyOEMInf(void)
SetLastError
(
0xdeadbeef
);
res
=
SetupCopyOEMInf
(
path
,
NULL
,
SPOST_NONE
,
SP_COPY_DELETESOURCE
,
NULL
,
0
,
NULL
,
NULL
);
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
"
);
todo_wine
{
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
GetLastError
());
}
}
START_TEST
(
misc
)
...
...
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