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
47023274
Commit
47023274
authored
Sep 09, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msidb: Use CRT allocation functions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
5df4ff13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
main.c
programs/msidb/main.c
+4
-4
No files found.
programs/msidb/main.c
View file @
47023274
...
@@ -63,7 +63,7 @@ static void list_free( struct list *list )
...
@@ -63,7 +63,7 @@ static void list_free( struct list *list )
LIST_FOR_EACH_ENTRY_SAFE
(
data
,
next
,
list
,
struct
msidb_listentry
,
entry
)
LIST_FOR_EACH_ENTRY_SAFE
(
data
,
next
,
list
,
struct
msidb_listentry
,
entry
)
{
{
list_remove
(
&
data
->
entry
);
list_remove
(
&
data
->
entry
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
free
(
data
);
}
}
}
}
...
@@ -71,7 +71,7 @@ static void list_append( struct list *list, WCHAR *name )
...
@@ -71,7 +71,7 @@ static void list_append( struct list *list, WCHAR *name )
{
{
struct
msidb_listentry
*
data
;
struct
msidb_listentry
*
data
;
data
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
struct
msidb_listentry
)
);
data
=
calloc
(
1
,
sizeof
(
*
data
)
);
if
(
!
data
)
if
(
!
data
)
{
{
ERR
(
"Out of memory for list.
\n
"
);
ERR
(
"Out of memory for list.
\n
"
);
...
@@ -457,14 +457,14 @@ static int import_tables( struct msidb_state *state )
...
@@ -457,14 +457,14 @@ static int import_tables( struct msidb_state *state )
DWORD
len
;
DWORD
len
;
len
=
lstrlenW
(
state
->
table_folder
)
+
1
+
lstrlenW
(
table_name
)
+
1
;
/* %s/%s\0 */
len
=
lstrlenW
(
state
->
table_folder
)
+
1
+
lstrlenW
(
table_name
)
+
1
;
/* %s/%s\0 */
path
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
path
=
malloc
(
len
*
sizeof
(
WCHAR
)
);
if
(
path
==
NULL
)
if
(
path
==
NULL
)
return
0
;
return
0
;
lstrcpyW
(
path
,
state
->
table_folder
);
lstrcpyW
(
path
,
state
->
table_folder
);
PathAddBackslashW
(
path
);
PathAddBackslashW
(
path
);
lstrcatW
(
path
,
table_name
);
lstrcatW
(
path
,
table_name
);
handle
=
FindFirstFileW
(
path
,
&
f
);
handle
=
FindFirstFileW
(
path
,
&
f
);
HeapFree
(
GetProcessHeap
(),
0
,
path
);
free
(
path
);
if
(
handle
==
INVALID_HANDLE_VALUE
)
if
(
handle
==
INVALID_HANDLE_VALUE
)
return
0
;
return
0
;
do
do
...
...
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