Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
cb6983fb
Commit
cb6983fb
authored
Jan 16, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jan 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineboot: Use WIN32_LEAN_AND_MEAN.
Use HeapAlloc/HeapFree instead of malloc/free.
parent
91199249
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
wineboot.c
programs/wineboot/wineboot.c
+6
-4
No files found.
programs/wineboot/wineboot.c
View file @
cb6983fb
...
...
@@ -51,6 +51,8 @@
* processed (requires translations from Unicode to Ansi).
*/
#define WIN32_LEAN_AND_MEAN
#include <stdio.h>
#include <windows.h>
#include <wine/debug.h>
...
...
@@ -240,7 +242,7 @@ static BOOL pendingRename(void)
goto
end
;
}
buffer
=
malloc
(
dataLength
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dataLength
);
if
(
buffer
==
NULL
)
{
WINE_ERR
(
"Couldn't allocate %lu bytes for the value
\n
"
,
dataLength
);
...
...
@@ -325,7 +327,7 @@ static BOOL pendingRename(void)
end:
if
(
buffer
!=
NULL
)
free
(
buffer
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
if
(
hSession
!=
NULL
)
RegCloseKey
(
hSession
);
...
...
@@ -460,7 +462,7 @@ static BOOL ProcessRunKeys( HKEY hkRoot, LPCWSTR szKeyName, BOOL bDelete,
goto
end
;
}
if
(
(
szCmdLine
=
malloc
(
nMaxCmdLine
))
==
NULL
)
if
(
(
szCmdLine
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nMaxCmdLine
))
==
NULL
)
{
WINE_ERR
(
"Couldn't allocate memory for the commands to be executed
\n
"
);
...
...
@@ -468,7 +470,7 @@ static BOOL ProcessRunKeys( HKEY hkRoot, LPCWSTR szKeyName, BOOL bDelete,
goto
end
;
}
if
(
(
szValue
=
malloc
(
(
++
nMaxValue
)
*
sizeof
(
*
szValue
)))
==
NULL
)
if
(
(
szValue
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
++
nMaxValue
)
*
sizeof
(
*
szValue
)))
==
NULL
)
{
WINE_ERR
(
"Couldn't allocate memory for the value names
\n
"
);
...
...
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