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
c95b182d
Commit
c95b182d
authored
Oct 02, 2014
by
Sebastian Lackner
Committed by
Alexandre Julliard
Oct 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Fix swapped argument order in SHMapHandle.
parent
ef065486
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
ordinal.c
dlls/shlwapi/ordinal.c
+2
-2
ordinal.c
dlls/shlwapi/tests/ordinal.c
+1
-5
No files found.
dlls/shlwapi/ordinal.c
View file @
c95b182d
...
...
@@ -265,8 +265,8 @@ BOOL WINAPI SHFreeShared(HANDLE hShared, DWORD dwProcId)
*
* PARAMS
* hShared [I] Shared memory handle to duplicate
* dwDstProcId [I] ID of the process wanting the duplicated handle
* dwSrcProcId [I] ID of the process owning hShared
* dwDstProcId [I] ID of the process wanting the duplicated handle
* dwAccess [I] Desired DuplicateHandle() access
* dwOptions [I] Desired DuplicateHandle() options
*
...
...
@@ -275,7 +275,7 @@ BOOL WINAPI SHFreeShared(HANDLE hShared, DWORD dwProcId)
* Failure: A NULL handle.
*
*/
HANDLE
WINAPI
SHMapHandle
(
HANDLE
hShared
,
DWORD
dw
DstProcId
,
DWORD
dwSrc
ProcId
,
HANDLE
WINAPI
SHMapHandle
(
HANDLE
hShared
,
DWORD
dw
SrcProcId
,
DWORD
dwDst
ProcId
,
DWORD
dwAccess
,
DWORD
dwOptions
)
{
HANDLE
hRet
;
...
...
dlls/shlwapi/tests/ordinal.c
View file @
c95b182d
...
...
@@ -548,28 +548,24 @@ static void test_alloc_shared_remote(DWORD procid, HANDLE hmem)
/* It seems like Windows Vista/2008 uses a different internal implementation
* for shared memory, and calling SHMapHandle fails with ERROR_INVALID_HANDLE. */
todo_wine
ok
(
hmem2
!=
NULL
||
broken
(
hmem2
==
NULL
&&
GetLastError
()
==
ERROR_INVALID_HANDLE
),
"SHMapHandle failed: %u
\n
"
,
GetLastError
());
if
(
hmem2
==
NULL
&&
GetLastError
()
==
ERROR_INVALID_HANDLE
)
{
skip
(
"Subprocess failed to map shared memory, skipping test
\n
"
);
win_
skip
(
"Subprocess failed to map shared memory, skipping test
\n
"
);
return
;
}
p
=
pSHLockShared
(
hmem2
,
GetCurrentProcessId
());
todo_wine
ok
(
p
!=
NULL
,
"SHLockShared failed: %u
\n
"
,
GetLastError
());
if
(
p
!=
NULL
)
ok
(
p
->
value
==
0x12345679
,
"Wrong value in shared memory: %d instead of %d
\n
"
,
p
->
value
,
0x12345679
);
ret
=
pSHUnlockShared
(
p
);
todo_wine
ok
(
ret
,
"SHUnlockShared failed: %u
\n
"
,
GetLastError
());
ret
=
pSHFreeShared
(
hmem2
,
GetCurrentProcessId
());
todo_wine
ok
(
ret
,
"SHFreeShared failed: %u
\n
"
,
GetLastError
());
}
...
...
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