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
2c5efe31
Commit
2c5efe31
authored
Dec 13, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Dec 13, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SHGetMalloc must use MEMCTX_TASK, otherwise CoGetMalloc will
badly fail with E_INVALIDARG in case native OLE32 is used.
parent
3481e803
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
shellole.c
dlls/shell32/shellole.c
+1
-1
obj_base.h
include/wine/obj_base.h
+9
-0
No files found.
dlls/shell32/shellole.c
View file @
2c5efe31
...
...
@@ -146,7 +146,7 @@ DWORD WINAPI SHCLSIDFromStringAW (LPVOID clsid, CLSID *id)
DWORD
WINAPI
SHGetMalloc
(
LPMALLOC
*
lpmal
)
{
TRACE
(
"(%p)
\n
"
,
lpmal
);
return
CoGetMalloc
(
0
,
lpmal
);
return
CoGetMalloc
(
MEMCTX_TASK
,
lpmal
);
}
/*************************************************************************
...
...
include/wine/obj_base.h
View file @
2c5efe31
...
...
@@ -701,6 +701,15 @@ ICOM_DEFINE(IMalloc,IUnknown)
#define IMalloc_DidAlloc(p,a) ICOM_CALL1(DidAlloc,p,a)
#define IMalloc_HeapMinimize(p) ICOM_CALL (HeapMinimize,p)
/* values passed to CoGetMalloc */
#define MEMCTX_TASK 1
/* private task memory */
#define MEMCTX_SHARED 2
/* shared memory */
#ifdef _MAC
#define MEMCTX_MACSYSTEM 3
/* system heap on mac */
#endif
/* mainly for internal use... */
#define MEMCTX_UNKNOWN -1
#define MEMCTX_SAME -2
HRESULT
WINAPI
CoGetMalloc
(
DWORD
dwMemContext
,
LPMALLOC
*
lpMalloc
);
...
...
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