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
16e92eb3
Commit
16e92eb3
authored
Oct 29, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused LOCAL_LockSegptr.
parent
4c18636d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
local.h
include/local.h
+1
-2
local.c
memory/local.c
+4
-12
No files found.
include/local.h
View file @
16e92eb3
...
@@ -23,8 +23,7 @@ extern UINT16 LOCAL_Size( HANDLE16 ds, HLOCAL16 handle );
...
@@ -23,8 +23,7 @@ extern UINT16 LOCAL_Size( HANDLE16 ds, HLOCAL16 handle );
extern
UINT16
LOCAL_Flags
(
HANDLE16
ds
,
HLOCAL16
handle
);
extern
UINT16
LOCAL_Flags
(
HANDLE16
ds
,
HLOCAL16
handle
);
extern
UINT16
LOCAL_HeapSize
(
HANDLE16
ds
);
extern
UINT16
LOCAL_HeapSize
(
HANDLE16
ds
);
extern
UINT16
LOCAL_CountFree
(
HANDLE16
ds
);
extern
UINT16
LOCAL_CountFree
(
HANDLE16
ds
);
extern
LPSTR
LOCAL_Lock
(
HANDLE16
ds
,
HLOCAL16
handle
);
extern
void
*
LOCAL_Lock
(
HANDLE16
ds
,
HLOCAL16
handle
);
extern
SEGPTR
LOCAL_LockSegptr
(
HANDLE16
ds
,
HLOCAL16
handle
);
extern
BOOL16
LOCAL_Unlock
(
HANDLE16
ds
,
HLOCAL16
handle
);
extern
BOOL16
LOCAL_Unlock
(
HANDLE16
ds
,
HLOCAL16
handle
);
extern
WORD
LOCAL_Compact
(
HANDLE16
ds
,
UINT16
minfree
,
UINT16
flags
);
extern
WORD
LOCAL_Compact
(
HANDLE16
ds
,
UINT16
minfree
,
UINT16
flags
);
...
...
memory/local.c
View file @
16e92eb3
...
@@ -1396,7 +1396,7 @@ static HLOCAL16 LOCAL_InternalLock( LPSTR heap, HLOCAL16 handle )
...
@@ -1396,7 +1396,7 @@ static HLOCAL16 LOCAL_InternalLock( LPSTR heap, HLOCAL16 handle )
/***********************************************************************
/***********************************************************************
* LOCAL_Lock
* LOCAL_Lock
*/
*/
LPSTR
LOCAL_Lock
(
HANDLE16
ds
,
HLOCAL16
handle
)
void
*
LOCAL_Lock
(
HANDLE16
ds
,
HLOCAL16
handle
)
{
{
char
*
ptr
=
PTR_SEG_OFF_TO_LIN
(
ds
,
0
);
char
*
ptr
=
PTR_SEG_OFF_TO_LIN
(
ds
,
0
);
return
handle
?
ptr
+
LOCAL_InternalLock
(
ptr
,
handle
)
:
NULL
;
return
handle
?
ptr
+
LOCAL_InternalLock
(
ptr
,
handle
)
:
NULL
;
...
@@ -1404,16 +1404,6 @@ LPSTR LOCAL_Lock( HANDLE16 ds, HLOCAL16 handle )
...
@@ -1404,16 +1404,6 @@ LPSTR LOCAL_Lock( HANDLE16 ds, HLOCAL16 handle )
/***********************************************************************
/***********************************************************************
* LOCAL_LockSegptr
*/
SEGPTR
LOCAL_LockSegptr
(
HANDLE16
ds
,
HLOCAL16
handle
)
{
char
*
ptr
=
PTR_SEG_OFF_TO_LIN
(
ds
,
0
);
return
PTR_SEG_OFF_TO_SEGPTR
(
ds
,
LOCAL_InternalLock
(
ptr
,
handle
)
);
}
/***********************************************************************
* LOCAL_Unlock
* LOCAL_Unlock
*/
*/
BOOL16
LOCAL_Unlock
(
HANDLE16
ds
,
HLOCAL16
handle
)
BOOL16
LOCAL_Unlock
(
HANDLE16
ds
,
HLOCAL16
handle
)
...
@@ -1594,7 +1584,9 @@ HLOCAL16 WINAPI LocalFree16( HLOCAL16 handle )
...
@@ -1594,7 +1584,9 @@ HLOCAL16 WINAPI LocalFree16( HLOCAL16 handle )
*/
*/
SEGPTR
WINAPI
LocalLock16
(
HLOCAL16
handle
)
SEGPTR
WINAPI
LocalLock16
(
HLOCAL16
handle
)
{
{
return
LOCAL_LockSegptr
(
CURRENT_DS
,
handle
);
WORD
ds
=
CURRENT_DS
;
char
*
ptr
=
PTR_SEG_OFF_TO_LIN
(
ds
,
0
);
return
PTR_SEG_OFF_TO_SEGPTR
(
ds
,
LOCAL_InternalLock
(
ptr
,
handle
)
);
}
}
...
...
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