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
a4061238
Commit
a4061238
authored
Mar 30, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrobj/tests: Use CRT memory allocation functions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5aab379d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
scrobj.c
dlls/scrobj/tests/scrobj.c
+2
-3
No files found.
dlls/scrobj/tests/scrobj.c
View file @
a4061238
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
#include <mshtmhst.h>
#include <mshtmhst.h>
#include "wine/test.h"
#include "wine/test.h"
#include "wine/heap.h"
static
HRESULT
(
WINAPI
*
pDllInstall
)(
BOOL
,
const
WCHAR
*
);
static
HRESULT
(
WINAPI
*
pDllInstall
)(
BOOL
,
const
WCHAR
*
);
...
@@ -715,7 +714,7 @@ static WCHAR *get_test_file(const char *res_name)
...
@@ -715,7 +714,7 @@ static WCHAR *get_test_file(const char *res_name)
ok
(
res
,
"CloseHandle failed: %lu
\n
"
,
GetLastError
());
ok
(
res
,
"CloseHandle failed: %lu
\n
"
,
GetLastError
());
size
=
(
wcslen
(
buffer
)
+
1
)
*
sizeof
(
WCHAR
);
size
=
(
wcslen
(
buffer
)
+
1
)
*
sizeof
(
WCHAR
);
ret
=
heap_
alloc
(
size
);
ret
=
m
alloc
(
size
);
memcpy
(
ret
,
buffer
,
size
);
memcpy
(
ret
,
buffer
,
size
);
return
ret
;
return
ret
;
}
}
...
@@ -1078,7 +1077,7 @@ START_TEST(scrobj)
...
@@ -1078,7 +1077,7 @@ START_TEST(scrobj)
register_script_object
(
FALSE
,
test_file
);
register_script_object
(
FALSE
,
test_file
);
register_script_engine
(
FALSE
);
register_script_engine
(
FALSE
);
heap_
free
(
test_file
);
free
(
test_file
);
}
}
else
else
skip
(
"Could not register script engine
\n
"
);
skip
(
"Could not register script engine
\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