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
966121cc
Commit
966121cc
authored
Dec 26, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed the SEGPTR_* macros.
parent
a69c039c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
25 deletions
+1
-25
ole2disp.h
dlls/oleaut32/ole2disp.h
+1
-0
heap.h
include/heap.h
+0
-25
No files found.
dlls/oleaut32/ole2disp.h
View file @
966121cc
...
...
@@ -2,6 +2,7 @@
#define __WINE_OLEAUT32_OLE2DISP_H
#include "wtypes.h"
#include "wine/windef16.h"
BSTR16
WINAPI
SysAllocString16
(
LPCOLESTR16
);
BSTR16
WINAPI
SysAllocStringLen16
(
const
char
*
,
int
);
...
...
include/heap.h
View file @
966121cc
...
...
@@ -12,31 +12,6 @@
#include "winbase.h"
#include "winnls.h"
#include "wine/unicode.h"
#include "wine/windef16.h"
/* for SEGPTR */
/* SEGPTR helper macros */
#define SEGPTR_ALLOC(size) \
(HeapAlloc( GetProcessHeap(), 0, (size) ))
#define SEGPTR_NEW(type) \
((type *)HeapAlloc( GetProcessHeap(), 0, sizeof(type) ))
#define SEGPTR_STRDUP_WtoA(str) \
(HIWORD(str) ? HEAP_strdupWtoA( GetProcessHeap(), 0, (str) ) : (LPSTR)(str))
#define SEGPTR_FREE(ptr) \
(HIWORD(ptr) ? HeapFree( GetProcessHeap(), 0, (ptr) ) : 0)
#define SEGPTR_GET(ptr) MapLS(ptr)
inline
static
LPSTR
SEGPTR_STRDUP
(
LPCSTR
str
)
{
if
(
HIWORD
(
str
))
{
INT
len
=
strlen
(
str
)
+
1
;
LPSTR
p
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
if
(
p
)
memcpy
(
p
,
str
,
len
);
return
p
;
}
return
(
LPSTR
)
str
;
}
/* strdup macros */
/* DO NOT USE THEM!! they will go away soon */
...
...
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