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
b2ed2528
Commit
b2ed2528
authored
Nov 30, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finished separation of ole32.
parent
9717845a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
21 deletions
+13
-21
Makefile.in
dlls/ddraw/Makefile.in
+1
-1
ddraw.spec
dlls/ddraw/ddraw.spec
+0
-1
Makefile.in
dlls/ole32/Makefile.in
+3
-2
ifs.c
dlls/ole32/ifs.c
+9
-17
No files found.
dlls/ddraw/Makefile.in
View file @
b2ed2528
...
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
ddraw
SOVERSION
=
1.0
IMPORTS
=
ole32
user32 x11drv gdi32 kernel32
IMPORTS
=
user32 x11drv gdi32 kernel32
MESA_SRCS
=
\
d3dcommon.c
\
...
...
dlls/ddraw/ddraw.spec
View file @
b2ed2528
name ddraw
type win32
import ole32.dll
import user32.dll
import x11drv.dll
import gdi32.dll
...
...
dlls/ole32/Makefile.in
View file @
b2ed2528
...
...
@@ -3,9 +3,10 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
ole32
SOVERSION
=
1.0
ALTNAMES
=
ole2 ole2nls ole2conv ole2prox ole2thk storage compobj
IMPORTS
=
advapi32 user32 gdi32 rpcrt4 kernel32 ntdll
LDDLLFLAGS
=
@LDDLLFLAGS@
SYMBOLFILE
=
$(MODULE)
.tmp.o
C_SRCS
=
\
antimoniker.c
\
...
...
dlls/ole32/ifs.c
View file @
b2ed2528
...
...
@@ -13,7 +13,6 @@
#include "heap.h"
#include "wine/winbase16.h"
#include "wine/obj_base.h"
#include "local.h"
#include "module.h"
#include "debugtools.h"
...
...
@@ -99,10 +98,6 @@ typedef struct
ICOM_VFIELD
(
IMalloc16
);
DWORD
ref
;
/* IMalloc16 fields */
/* Gmm, I think one is not enough, we should probably manage a list of
* heaps
*/
HGLOBAL16
heap
;
}
IMalloc16Impl
;
/******************************************************************************
...
...
@@ -142,28 +137,28 @@ ULONG WINAPI IMalloc16_fnRelease(IMalloc16* iface) {
/******************************************************************************
* IMalloc16_Alloc [COMPOBJ.503]
*/
LPVOID
WINAPI
IMalloc16_fnAlloc
(
IMalloc16
*
iface
,
DWORD
cb
)
{
SEGPTR
WINAPI
IMalloc16_fnAlloc
(
IMalloc16
*
iface
,
DWORD
cb
)
{
ICOM_THIS
(
IMalloc16Impl
,
iface
);
TRACE
(
"(%p)->Alloc(%ld)
\n
"
,
This
,
cb
);
return
(
LPVOID
)
PTR_SEG_OFF_TO_SEGPTR
(
This
->
heap
,
LOCAL_Alloc
(
This
->
heap
,
0
,
cb
)
);
return
MapLS
(
HeapAlloc
(
GetProcessHeap
(),
HEAP_WINE_SEGPTR
,
cb
)
);
}
/******************************************************************************
* IMalloc16_Realloc [COMPOBJ.504]
*/
LPVOID
WINAPI
IMalloc16_fnRealloc
(
IMalloc16
*
iface
,
LPVOID
pv
,
DWORD
cb
)
{
SEGPTR
WINAPI
IMalloc16_fnRealloc
(
IMalloc16
*
iface
,
SEGPTR
pv
,
DWORD
cb
)
{
ICOM_THIS
(
IMalloc16Impl
,
iface
);
TRACE
(
"(%p)->Realloc(%p
,%ld)
\n
"
,
This
,
pv
,
cb
);
return
(
LPVOID
)
PTR_SEG_OFF_TO_SEGPTR
(
This
->
heap
,
LOCAL_ReAlloc
(
This
->
heap
,
0
,
LOWORD
(
pv
),
cb
)
);
TRACE
(
"(%p)->Realloc(%08lx
,%ld)
\n
"
,
This
,
pv
,
cb
);
return
MapLS
(
HeapReAlloc
(
GetProcessHeap
(),
HEAP_WINE_SEGPTR
,
PTR_SEG_TO_LIN
(
pv
),
cb
)
);
}
/******************************************************************************
* IMalloc16_Free [COMPOBJ.505]
*/
VOID
WINAPI
IMalloc16_fnFree
(
IMalloc16
*
iface
,
LPVOID
pv
)
{
VOID
WINAPI
IMalloc16_fnFree
(
IMalloc16
*
iface
,
SEGPTR
pv
)
{
ICOM_THIS
(
IMalloc16Impl
,
iface
);
TRACE
(
"(%p)->Free(%p
)
\n
"
,
This
,
pv
);
LOCAL_Free
(
This
->
heap
,
LOWORD
(
pv
)
);
TRACE
(
"(%p)->Free(%08lx
)
\n
"
,
This
,
pv
);
HeapFree
(
GetProcessHeap
(),
HEAP_WINE_SEGPTR
,
PTR_SEG_TO_LIN
(
pv
)
);
}
/******************************************************************************
...
...
@@ -172,7 +167,7 @@ VOID WINAPI IMalloc16_fnFree(IMalloc16* iface,LPVOID pv) {
DWORD
WINAPI
IMalloc16_fnGetSize
(
const
IMalloc16
*
iface
,
LPVOID
pv
)
{
ICOM_CTHIS
(
IMalloc16Impl
,
iface
);
TRACE
(
"(%p)->GetSize(%p)
\n
"
,
This
,
pv
);
return
LOCAL_Size
(
This
->
heap
,
LOWORD
(
pv
)
);
return
HeapSize
(
GetProcessHeap
(),
HEAP_WINE_SEGPTR
,
PTR_SEG_TO_LIN
(
pv
)
);
}
/******************************************************************************
...
...
@@ -221,9 +216,6 @@ IMalloc16_Constructor() {
}
ICOM_VTBL
(
This
)
=
(
ICOM_VTABLE
(
IMalloc16
)
*
)
SEGPTR_GET
(
msegvt16
);
This
->
ref
=
1
;
/* FIXME: implement multiple heaps */
This
->
heap
=
GlobalAlloc16
(
GMEM_MOVEABLE
,
64000
);
LocalInit16
(
This
->
heap
,
0
,
64000
);
return
(
LPMALLOC16
)
SEGPTR_GET
(
This
);
}
...
...
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