Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoann Laissus
wine
Commits
966121cc
Commit
966121cc
authored
23 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Removed the SEGPTR_* macros.
parent
a69c039c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/oleaut32/ole2disp.h
+1
-0
1 addition, 0 deletions
dlls/oleaut32/ole2disp.h
include/heap.h
+0
-25
0 additions, 25 deletions
include/heap.h
with
1 addition
and
25 deletions
dlls/oleaut32/ole2disp.h
+
1
−
0
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
);
...
...
This diff is collapsed.
Click to expand it.
include/heap.h
+
0
−
25
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 */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment