Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7f6e1090
Commit
7f6e1090
authored
Apr 01, 2019
by
Sebastian Lackner
Committed by
Alexandre Julliard
Apr 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: SHMapHandle should not set error when NULL is passed as hShared.
Signed-off-by:
Vijay Kiran Kamuju
<
infyquest@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5cd7f63f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
ordinal.c
dlls/shlwapi/ordinal.c
+6
-0
ordinal.c
dlls/shlwapi/tests/ordinal.c
+0
-1
No files found.
dlls/shlwapi/ordinal.c
View file @
7f6e1090
...
...
@@ -97,6 +97,12 @@ HANDLE WINAPI SHMapHandle(HANDLE hShared, DWORD dwSrcProcId, DWORD dwDstProcId,
TRACE
(
"(%p,%d,%d,%08x,%08x)
\n
"
,
hShared
,
dwDstProcId
,
dwSrcProcId
,
dwAccess
,
dwOptions
);
if
(
!
hShared
)
{
TRACE
(
"Returning handle NULL
\n
"
);
return
NULL
;
}
/* Get dest process handle */
if
(
dwDstProcId
==
dwMyProcId
)
hDst
=
GetCurrentProcess
();
...
...
dlls/shlwapi/tests/ordinal.c
View file @
7f6e1090
...
...
@@ -556,7 +556,6 @@ static void test_alloc_shared_remote(DWORD procid, HANDLE hmem)
SetLastError
(
0xdeadbeef
);
hmem2
=
pSHMapHandle
(
NULL
,
procid
,
GetCurrentProcessId
(),
0
,
0
);
ok
(
hmem2
==
NULL
,
"expected NULL, got new handle
\n
"
);
todo_wine
ok
(
GetLastError
()
==
0xdeadbeef
,
"last error should not have changed, got %u
\n
"
,
GetLastError
());
hmem2
=
pSHMapHandle
(
hmem
,
procid
,
GetCurrentProcessId
(),
0
,
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