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
de12a970
Commit
de12a970
authored
Oct 14, 2003
by
Oleg Prokhorov
Committed by
Alexandre Julliard
Oct 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another portion of HeapReAlloc fixes.
parent
46f29944
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
133 additions
and
33 deletions
+133
-33
listbox.c
controls/listbox.c
+17
-5
buffer.c
dlls/dsound/buffer.c
+13
-3
capture.c
dlls/dsound/capture.c
+22
-7
dsound_main.c
dlls/dsound/dsound_main.c
+6
-1
primary.c
dlls/dsound/primary.c
+6
-1
editline.c
dlls/kernel/editline.c
+8
-2
global16.c
dlls/kernel/global16.c
+9
-3
resource16.c
dlls/kernel/resource16.c
+9
-4
snoop16.c
dlls/kernel/snoop16.c
+6
-1
oleproxy.c
dlls/ole32/oleproxy.c
+6
-1
rpc.c
dlls/ole32/rpc.c
+6
-1
rpc_server.c
dlls/rpcrt4/rpc_server.c
+5
-1
dirid.c
dlls/setupapi/dirid.c
+9
-1
setupx_main.c
dlls/setupapi/setupx_main.c
+4
-1
message.c
dlls/user/message.c
+7
-1
No files found.
controls/listbox.c
View file @
de12a970
...
...
@@ -714,10 +714,17 @@ static LRESULT LISTBOX_InitStorage( HWND hwnd, LB_DESCR *descr, INT nb_items )
nb_items
+=
LB_ARRAY_GRANULARITY
-
1
;
nb_items
-=
(
nb_items
%
LB_ARRAY_GRANULARITY
);
if
(
descr
->
items
)
if
(
descr
->
items
)
{
nb_items
+=
HeapSize
(
GetProcessHeap
(),
0
,
descr
->
items
)
/
sizeof
(
*
item
);
if
(
!
(
item
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
descr
->
items
,
nb_items
*
sizeof
(
LB_ITEMDATA
)
)))
item
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
descr
->
items
,
nb_items
*
sizeof
(
LB_ITEMDATA
));
}
else
{
item
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nb_items
*
sizeof
(
LB_ITEMDATA
));
}
if
(
!
item
)
{
SEND_NOTIFICATION
(
hwnd
,
descr
,
LBN_ERRSPACE
);
return
LB_ERRSPACE
;
...
...
@@ -1477,8 +1484,13 @@ static LRESULT LISTBOX_InsertItem( HWND hwnd, LB_DESCR *descr, INT index,
{
/* We need to grow the array */
max_items
+=
LB_ARRAY_GRANULARITY
;
if
(
!
(
item
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
descr
->
items
,
max_items
*
sizeof
(
LB_ITEMDATA
)
)))
if
(
descr
->
items
)
item
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
descr
->
items
,
max_items
*
sizeof
(
LB_ITEMDATA
)
);
else
item
=
HeapAlloc
(
GetProcessHeap
(),
0
,
max_items
*
sizeof
(
LB_ITEMDATA
)
);
if
(
!
item
)
{
SEND_NOTIFICATION
(
hwnd
,
descr
,
LBN_ERRSPACE
);
return
LB_ERRSPACE
;
...
...
dlls/dsound/buffer.c
View file @
de12a970
...
...
@@ -121,8 +121,13 @@ static HRESULT WINAPI IDirectSoundNotifyImpl_SetNotificationPositions(
}
else
{
/* Make an internal copy of the caller-supplied array.
* Replace the existing copy if one is already present. */
This
->
dsb
->
notifies
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
This
->
dsb
->
notifies
,
howmuch
*
sizeof
(
DSBPOSITIONNOTIFY
));
if
(
This
->
dsb
->
notifies
)
This
->
dsb
->
notifies
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
This
->
dsb
->
notifies
,
howmuch
*
sizeof
(
DSBPOSITIONNOTIFY
));
else
This
->
dsb
->
notifies
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
howmuch
*
sizeof
(
DSBPOSITIONNOTIFY
));
if
(
This
->
dsb
->
notifies
==
NULL
)
{
WARN
(
"out of memory
\n
"
);
return
DSERR_OUTOFMEMORY
;
...
...
@@ -1163,7 +1168,12 @@ HRESULT WINAPI IDirectSoundBufferImpl_Create(
/* register buffer */
RtlAcquireResourceExclusive
(
&
(
ds
->
lock
),
TRUE
);
if
(
!
(
dsbd
->
dwFlags
&
DSBCAPS_PRIMARYBUFFER
))
{
IDirectSoundBufferImpl
**
newbuffers
=
(
IDirectSoundBufferImpl
**
)
HeapReAlloc
(
GetProcessHeap
(),
0
,
ds
->
buffers
,
sizeof
(
IDirectSoundBufferImpl
*
)
*
(
ds
->
nrofbuffers
+
1
));
IDirectSoundBufferImpl
**
newbuffers
;
if
(
ds
->
buffers
)
newbuffers
=
(
IDirectSoundBufferImpl
**
)
HeapReAlloc
(
GetProcessHeap
(),
0
,
ds
->
buffers
,
sizeof
(
IDirectSoundBufferImpl
*
)
*
(
ds
->
nrofbuffers
+
1
));
else
newbuffers
=
(
IDirectSoundBufferImpl
**
)
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
IDirectSoundBufferImpl
*
)
*
(
ds
->
nrofbuffers
+
1
));
if
(
newbuffers
)
{
ds
->
buffers
=
newbuffers
;
ds
->
buffers
[
ds
->
nrofbuffers
]
=
dsb
;
...
...
dlls/dsound/capture.c
View file @
de12a970
...
...
@@ -757,8 +757,10 @@ DSOUND_CreateDirectSoundCaptureBuffer(
buflen
=
lpcDSCBufferDesc
->
dwBufferBytes
;
TRACE
(
"desired buflen=%ld, old buffer=%p
\n
"
,
buflen
,
ipDSC
->
buffer
);
newbuf
=
(
LPBYTE
)
HeapReAlloc
(
GetProcessHeap
(),
0
,
ipDSC
->
buffer
,
buflen
);
if
(
ipDSC
->
buffer
)
newbuf
=
(
LPBYTE
)
HeapReAlloc
(
GetProcessHeap
(),
0
,
ipDSC
->
buffer
,
buflen
);
else
newbuf
=
(
LPBYTE
)
HeapAlloc
(
GetProcessHeap
(),
0
,
buflen
);
if
(
newbuf
==
NULL
)
{
WARN
(
"failed to allocate capture buffer
\n
"
);
err
=
DSERR_OUTOFMEMORY
;
...
...
@@ -850,8 +852,13 @@ static HRESULT WINAPI IDirectSoundCaptureNotifyImpl_SetNotificationPositions(
}
else
{
/* Make an internal copy of the caller-supplied array.
* Replace the existing copy if one is already present. */
This
->
dscb
->
notifies
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
This
->
dscb
->
notifies
,
howmuch
*
sizeof
(
DSBPOSITIONNOTIFY
));
if
(
This
->
dscb
->
notifies
)
This
->
dscb
->
notifies
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
This
->
dscb
->
notifies
,
howmuch
*
sizeof
(
DSBPOSITIONNOTIFY
));
else
This
->
dscb
->
notifies
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
howmuch
*
sizeof
(
DSBPOSITIONNOTIFY
));
if
(
This
->
dscb
->
notifies
==
NULL
)
{
WARN
(
"out of memory
\n
"
);
return
DSERR_OUTOFMEMORY
;
...
...
@@ -1336,8 +1343,12 @@ IDirectSoundCaptureBufferImpl_Start(
TRACE
(
"nrofnotifies=%d
\n
"
,
This
->
nrofnotifies
);
/* prepare headers */
ipDSC
->
pwave
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
ipDSC
->
pwave
,
ipDSC
->
nrofpwaves
*
sizeof
(
WAVEHDR
));
if
(
ipDSC
->
pwave
)
ipDSC
->
pwave
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
ipDSC
->
pwave
,
ipDSC
->
nrofpwaves
*
sizeof
(
WAVEHDR
));
else
ipDSC
->
pwave
=
HeapAlloc
(
GetProcessHeap
(),
0
,
ipDSC
->
nrofpwaves
*
sizeof
(
WAVEHDR
));
for
(
c
=
0
;
c
<
ipDSC
->
nrofpwaves
;
c
++
)
{
if
(
c
==
0
)
{
...
...
@@ -1379,7 +1390,11 @@ IDirectSoundCaptureBufferImpl_Start(
TRACE
(
"no notifiers specified
\n
"
);
/* no notifiers specified so just create a single default header */
ipDSC
->
nrofpwaves
=
1
;
ipDSC
->
pwave
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
ipDSC
->
pwave
,
sizeof
(
WAVEHDR
));
if
(
ipDSC
->
pwave
)
ipDSC
->
pwave
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
ipDSC
->
pwave
,
sizeof
(
WAVEHDR
));
else
ipDSC
->
pwave
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
WAVEHDR
));
ipDSC
->
pwave
[
0
].
lpData
=
ipDSC
->
buffer
;
ipDSC
->
pwave
[
0
].
dwBufferLength
=
ipDSC
->
buflen
;
ipDSC
->
pwave
[
0
].
dwUser
=
(
DWORD
)
ipDSC
;
...
...
dlls/dsound/dsound_main.c
View file @
de12a970
...
...
@@ -623,7 +623,12 @@ static HRESULT WINAPI IDirectSoundImpl_DuplicateSoundBuffer(
/* register buffer */
RtlAcquireResourceExclusive
(
&
(
This
->
lock
),
TRUE
);
{
IDirectSoundBufferImpl
**
newbuffers
=
(
IDirectSoundBufferImpl
**
)
HeapReAlloc
(
GetProcessHeap
(),
0
,
This
->
buffers
,
sizeof
(
IDirectSoundBufferImpl
**
)
*
(
This
->
nrofbuffers
+
1
));
IDirectSoundBufferImpl
**
newbuffers
;
if
(
This
->
buffers
)
newbuffers
=
(
IDirectSoundBufferImpl
**
)
HeapReAlloc
(
GetProcessHeap
(),
0
,
This
->
buffers
,
sizeof
(
IDirectSoundBufferImpl
**
)
*
(
This
->
nrofbuffers
+
1
));
else
newbuffers
=
(
IDirectSoundBufferImpl
**
)
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
IDirectSoundBufferImpl
**
)
*
(
This
->
nrofbuffers
+
1
));
if
(
newbuffers
)
{
This
->
buffers
=
newbuffers
;
This
->
buffers
[
This
->
nrofbuffers
]
=
dsb
;
...
...
dlls/dsound/primary.c
View file @
de12a970
...
...
@@ -90,7 +90,12 @@ static HRESULT DSOUND_PrimaryOpen(IDirectSoundImpl *This)
buflen
=
((
This
->
wfx
.
nAvgBytesPerSec
/
100
)
&
~
3
)
*
DS_HEL_FRAGS
;
TRACE
(
"desired buflen=%ld, old buffer=%p
\n
"
,
buflen
,
This
->
buffer
);
/* reallocate emulated primary buffer */
newbuf
=
(
LPBYTE
)
HeapReAlloc
(
GetProcessHeap
(),
0
,
This
->
buffer
,
buflen
);
if
(
This
->
buffer
)
newbuf
=
(
LPBYTE
)
HeapReAlloc
(
GetProcessHeap
(),
0
,
This
->
buffer
,
buflen
);
else
newbuf
=
(
LPBYTE
)
HeapAlloc
(
GetProcessHeap
(),
0
,
buflen
);
if
(
newbuf
==
NULL
)
{
ERR
(
"failed to allocate primary buffer
\n
"
);
merr
=
DSERR_OUTOFMEMORY
;
...
...
dlls/kernel/editline.c
View file @
de12a970
...
...
@@ -150,7 +150,12 @@ static BOOL WCEL_Grow(WCEL_Context* ctx, size_t len)
/* round up size to 32 byte-WCHAR boundary */
newsize
=
(
ctx
->
len
+
len
+
1
+
31
)
&
~
31
;
newline
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
ctx
->
line
,
sizeof
(
WCHAR
)
*
newsize
);
if
(
ctx
->
line
)
newline
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
ctx
->
line
,
sizeof
(
WCHAR
)
*
newsize
);
else
newline
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
WCHAR
)
*
newsize
);
if
(
!
newline
)
return
FALSE
;
ctx
->
line
=
newline
;
ctx
->
alloc
=
newsize
;
...
...
@@ -237,7 +242,8 @@ static void WCEL_SaveYank(WCEL_Context* ctx, int beg, int end)
if
(
len
<=
0
)
return
;
WCEL_FreeYank
(
ctx
);
ctx
->
yanked
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
ctx
->
yanked
,
(
len
+
1
)
*
sizeof
(
WCHAR
));
/* After WCEL_FreeYank ctx->yanked is empty */
ctx
->
yanked
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
len
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
ctx
->
yanked
)
return
;
memcpy
(
ctx
->
yanked
,
&
ctx
->
line
[
beg
],
len
*
sizeof
(
WCHAR
));
ctx
->
yanked
[
len
]
=
0
;
...
...
dlls/kernel/global16.c
View file @
de12a970
...
...
@@ -352,10 +352,16 @@ HGLOBAL16 WINAPI GlobalReAlloc16(
* given out by GetVDMPointer32W16),
* only try to realloc in place
*/
newptr
=
HeapReAlloc
(
GetProcessHeap
(),
(
pArena
->
pageLockCount
>
0
)
?
HEAP_REALLOC_IN_PLACE_ONLY
:
0
,
if
(
ptr
)
newptr
=
HeapReAlloc
(
GetProcessHeap
(),
(
pArena
->
pageLockCount
>
0
)
?
HEAP_REALLOC_IN_PLACE_ONLY
:
0
,
ptr
,
size
);
else
newptr
=
HeapAlloc
(
GetProcessHeap
(),
(
pArena
->
pageLockCount
>
0
)
?
HEAP_REALLOC_IN_PLACE_ONLY
:
0
,
size
);
}
if
(
!
newptr
)
...
...
dlls/kernel/resource16.c
View file @
de12a970
...
...
@@ -95,10 +95,15 @@ static HRSRC16 MapHRsrc32To16( NE_MODULE *pModule, HRSRC hRsrc32, WORD type )
/* If no space left, grow table */
if
(
map
->
nUsed
==
map
->
nAlloc
)
{
if
(
!
(
newElem
=
(
HRSRC_ELEM
*
)
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
map
->
elem
,
(
map
->
nAlloc
+
HRSRC_MAP_BLOCKSIZE
)
*
sizeof
(
HRSRC_ELEM
)
)
))
if
(
map
->
elem
)
newElem
=
(
HRSRC_ELEM
*
)
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
map
->
elem
,
(
map
->
nAlloc
+
HRSRC_MAP_BLOCKSIZE
)
*
sizeof
(
HRSRC_ELEM
)
);
else
newElem
=
(
HRSRC_ELEM
*
)
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
(
map
->
nAlloc
+
HRSRC_MAP_BLOCKSIZE
)
*
sizeof
(
HRSRC_ELEM
)
);
if
(
!
newElem
)
{
ERR
(
"Cannot grow HRSRC map
\n
"
);
return
0
;
...
...
dlls/kernel/snoop16.c
View file @
de12a970
...
...
@@ -145,7 +145,12 @@ SNOOP16_RegisterDLL(NE_MODULE *pModule,LPCSTR name) {
}
dll
=
&
((
*
dll
)
->
next
);
}
*
dll
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
*
dll
,
sizeof
(
SNOOP16_DLL
)
+
strlen
(
name
));
if
(
*
dll
)
*
dll
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
*
dll
,
sizeof
(
SNOOP16_DLL
)
+
strlen
(
name
));
else
*
dll
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
SNOOP16_DLL
)
+
strlen
(
name
));
(
*
dll
)
->
next
=
NULL
;
(
*
dll
)
->
hmod
=
pModule
->
self
;
if
((
s
=
strrchr
(
name
,
'\\'
)))
...
...
dlls/ole32/oleproxy.c
View file @
de12a970
...
...
@@ -185,7 +185,12 @@ CFStub_Invoke(
}
msg
->
cbBuffer
=
ststg
.
cbSize
.
s
.
LowPart
;
msg
->
Buffer
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
msg
->
Buffer
,
ststg
.
cbSize
.
s
.
LowPart
);
if
(
msg
->
Buffer
)
msg
->
Buffer
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
msg
->
Buffer
,
ststg
.
cbSize
.
s
.
LowPart
);
else
msg
->
Buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
ststg
.
cbSize
.
s
.
LowPart
);
seekto
.
s
.
LowPart
=
0
;
seekto
.
s
.
HighPart
=
0
;
hres
=
IStream_Seek
(
pStm
,
seekto
,
SEEK_SET
,
&
newpos
);
if
(
hres
)
{
...
...
dlls/ole32/rpc.c
View file @
de12a970
...
...
@@ -606,7 +606,12 @@ _read_one(wine_pipe *xpipe) {
continue
;
if
(
xreq
->
reqh
.
reqid
==
resph
.
reqid
)
{
memcpy
(
&
(
xreq
->
resph
),
&
resph
,
sizeof
(
resph
));
xreq
->
Buffer
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
xreq
->
Buffer
,
xreq
->
resph
.
cbBuffer
);
if
(
xreq
->
Buffer
)
xreq
->
Buffer
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
xreq
->
Buffer
,
xreq
->
resph
.
cbBuffer
);
else
xreq
->
Buffer
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
xreq
->
resph
.
cbBuffer
);
hres
=
_xread
(
xhPipe
,
xreq
->
Buffer
,
xreq
->
resph
.
cbBuffer
);
if
(
hres
)
goto
end
;
xreq
->
state
=
REQSTATE_RESP_GOT
;
...
...
dlls/rpcrt4/rpc_server.c
View file @
de12a970
...
...
@@ -390,7 +390,11 @@ static DWORD CALLBACK RPCRT4_server_thread(LPVOID the_arg)
cps
=
cps
->
Next
;
}
/* make array of connections */
objs
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
objs
,
count
*
sizeof
(
HANDLE
));
if
(
objs
)
objs
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
objs
,
count
*
sizeof
(
HANDLE
));
else
objs
=
HeapAlloc
(
GetProcessHeap
(),
0
,
count
*
sizeof
(
HANDLE
));
objs
[
0
]
=
m_event
;
count
=
1
;
cps
=
protseqs
;
...
...
dlls/setupapi/dirid.c
View file @
de12a970
...
...
@@ -176,8 +176,16 @@ static BOOL store_user_dirid( HINF hinf, int id, WCHAR *str )
if
(
nb_user_dirids
>=
alloc_user_dirids
)
{
int
new_size
=
max
(
32
,
alloc_user_dirids
*
2
);
struct
user_dirid
*
new
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
user_dirids
,
struct
user_dirid
*
new
;
if
(
user_dirids
)
new
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
user_dirids
,
new_size
*
sizeof
(
*
new
)
);
else
new
=
HeapAlloc
(
GetProcessHeap
(),
0
,
new_size
*
sizeof
(
*
new
)
);
if
(
!
new
)
return
FALSE
;
user_dirids
=
new
;
alloc_user_dirids
=
new_size
;
...
...
dlls/setupapi/setupx_main.c
View file @
de12a970
...
...
@@ -131,7 +131,10 @@ static LPSTR *SETUPX_GetSubStrings(LPSTR start, char delimiter)
/* alloc entry for new substring in steps of 32 units and copy over */
if
(
count
%
32
==
0
)
{
/* 1 for count field + current count + 32 */
res
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
res
,
(
1
+
count
+
32
)
*
sizeof
(
LPSTR
));
if
(
res
)
res
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
res
,
(
1
+
count
+
32
)
*
sizeof
(
LPSTR
));
else
res
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
1
+
count
+
32
)
*
sizeof
(
LPSTR
));
}
*
(
res
+
1
+
count
)
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
+
1
);
strncpy
(
*
(
res
+
1
+
count
),
p
,
len
);
...
...
dlls/user/message.c
View file @
de12a970
...
...
@@ -1160,8 +1160,14 @@ static BOOL dde_add_pair(HGLOBAL chm, HGLOBAL shm)
/* now remember the pair of hMem on both sides */
if
(
dde_num_used
==
dde_num_alloc
)
{
struct
DDE_pair
*
tmp
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
dde_pairs
,
struct
DDE_pair
*
tmp
;
if
(
dde_pairs
)
tmp
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
dde_pairs
,
(
dde_num_alloc
+
GROWBY
)
*
sizeof
(
struct
DDE_pair
));
else
tmp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
dde_num_alloc
+
GROWBY
)
*
sizeof
(
struct
DDE_pair
));
if
(
!
tmp
)
{
LeaveCriticalSection
(
&
dde_crst
);
...
...
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