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
3e54350d
Commit
3e54350d
authored
Nov 26, 2003
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Nov 26, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
{Global,Local}ReAlloc() does not allocate memory.
parent
77b8c0a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
ifs.c
dlls/ole32/ifs.c
+2
-1
shell32_main.c
dlls/shell32/shell32_main.c
+5
-5
No files found.
dlls/ole32/ifs.c
View file @
3e54350d
...
...
@@ -73,7 +73,8 @@ static CRITICAL_SECTION IMalloc32_SpyCS = { &critsect_debug, -1, 0, 0, 0, 0 };
/* resize the old table */
static
int
SetSpyedBlockTableLength
(
int
NewLength
)
{
Malloc32
.
SpyedBlocks
=
(
LPVOID
*
)
LocalReAlloc
((
HLOCAL
)
Malloc32
.
SpyedBlocks
,
NewLength
,
GMEM_ZEROINIT
);
if
(
!
Malloc32
.
SpyedBlocks
)
Malloc32
.
SpyedBlocks
=
(
LPVOID
*
)
LocalAlloc
(
NewLength
,
GMEM_ZEROINIT
);
else
Malloc32
.
SpyedBlocks
=
(
LPVOID
*
)
LocalReAlloc
((
HLOCAL
)
Malloc32
.
SpyedBlocks
,
NewLength
,
GMEM_ZEROINIT
);
Malloc32
.
SpyedBlockTableLength
=
NewLength
;
return
Malloc32
.
SpyedBlocks
?
1
:
0
;
}
...
...
dlls/shell32/shell32_main.c
View file @
3e54350d
...
...
@@ -92,15 +92,15 @@ LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR lpCmdline, int* numargs)
if
(
*
lpCmdline
==
0
)
{
/* Return the path to the executable */
DWORD
size
;
DWORD
size
=
16
;
hargv
=
0
;
size
=
16
;
do
{
hargv
=
GlobalAlloc
(
size
,
0
)
;
argv
=
GlobalLock
(
hargv
)
;
while
(
GetModuleFileNameW
(
0
,
(
LPWSTR
)(
argv
+
1
),
size
-
sizeof
(
LPWSTR
))
==
0
)
{
size
*=
2
;
hargv
=
GlobalReAlloc
(
hargv
,
size
,
0
);
argv
=
GlobalLock
(
hargv
);
}
while
(
GetModuleFileNameW
(
0
,
(
LPWSTR
)(
argv
+
1
),
size
-
sizeof
(
LPWSTR
))
==
0
);
}
argv
[
0
]
=
(
LPWSTR
)(
argv
+
1
);
if
(
numargs
)
*
numargs
=
2
;
...
...
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