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
2ef42bd9
Commit
2ef42bd9
authored
Jan 13, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole2disp: Implement SafeArrayLock()/SafeArrayUnlock().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
26c9bd9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
2 deletions
+36
-2
ole2disp.c
dlls/ole2disp.dll16/ole2disp.c
+34
-0
ole2disp.dll16.spec
dlls/ole2disp.dll16/ole2disp.dll16.spec
+2
-2
No files found.
dlls/ole2disp.dll16/ole2disp.c
View file @
2ef42bd9
...
...
@@ -108,6 +108,40 @@ USHORT WINAPI SafeArrayGetElemsize16(SAFEARRAY16 *sa)
}
/******************************************************************************
* SafeArrayLock [OLE2DISP.21]
*/
HRESULT
WINAPI
SafeArrayLock16
(
SAFEARRAY16
*
sa
)
{
TRACE
(
"(%p)
\n
"
,
sa
);
if
(
!
sa
)
return
E_INVALIDARG16
;
if
(
sa
->
cLocks
==
0xffff
)
return
E_UNEXPECTED
;
sa
->
cLocks
++
;
return
S_OK
;
}
/******************************************************************************
* SafeArrayUnlock [OLE2DISP.22]
*/
HRESULT
WINAPI
SafeArrayUnlock16
(
SAFEARRAY16
*
sa
)
{
TRACE
(
"(%p)
\n
"
,
sa
);
if
(
!
sa
)
return
E_INVALIDARG16
;
if
(
sa
->
cLocks
==
0
)
return
E_UNEXPECTED
;
sa
->
cLocks
--
;
return
S_OK
;
}
/******************************************************************************
* SafeArrayAllocDescriptor [OLE2DISP.38]
*/
HRESULT
WINAPI
SafeArrayAllocDescriptor16
(
UINT16
dims
,
SEGPTR
*
ret
)
...
...
dlls/ole2disp.dll16/ole2disp.dll16.spec
View file @
2ef42bd9
...
...
@@ -18,8 +18,8 @@
18 pascal -ret16 SafeArrayGetElemsize(ptr) SafeArrayGetElemsize16
19 stub SAFEARRAYGETUBOUND
20 stub SAFEARRAYGETLBOUND
21
stub SAFEARRAYLOCK
22
stub SAFEARRAYUNLOCK
21
pascal SafeArrayLock(ptr) SafeArrayLock16
22
pascal SafeArrayUnlock(ptr) SafeArrayUnlock16
23 stub SAFEARRAYACCESSDATA
24 stub SAFEARRAYUNACCESSDATA
25 stub SAFEARRAYGETELEMENT
...
...
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