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
6f8bcbf0
Commit
6f8bcbf0
authored
Apr 01, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sxs/tests: Use CRT memory allocation functions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8ce0ab97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
sxs.c
dlls/sxs/tests/sxs.c
+4
-5
No files found.
dlls/sxs/tests/sxs.c
View file @
6f8bcbf0
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
#include "shlwapi.h"
#include "shlwapi.h"
#include "wine/test.h"
#include "wine/test.h"
#include "wine/heap.h"
#include "initguid.h"
#include "initguid.h"
#include "interfaces.h"
#include "interfaces.h"
...
@@ -108,7 +107,7 @@ static void run_test(void)
...
@@ -108,7 +107,7 @@ static void run_test(void)
ok
(
ret
==
FALSE
,
"Got %d
\n
"
,
ret
);
ok
(
ret
==
FALSE
,
"Got %d
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"Got %ld
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"Got %ld
\n
"
,
GetLastError
());
info
=
heap_
alloc
(
buffer_size
);
info
=
m
alloc
(
buffer_size
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
SxsLookupClrGuid
(
SXS_LOOKUP_CLR_GUID_FIND_CLR_CLASS
,
(
GUID
*
)
&
CLSID_Test
,
NULL
,
info
,
buffer_size
,
&
buffer_size
);
ret
=
SxsLookupClrGuid
(
SXS_LOOKUP_CLR_GUID_FIND_CLR_CLASS
,
(
GUID
*
)
&
CLSID_Test
,
NULL
,
info
,
buffer_size
,
&
buffer_size
);
ok
(
ret
==
TRUE
,
"Got %d
\n
"
,
ret
);
ok
(
ret
==
TRUE
,
"Got %d
\n
"
,
ret
);
...
@@ -121,14 +120,14 @@ static void run_test(void)
...
@@ -121,14 +120,14 @@ static void run_test(void)
ok
(
!
lstrcmpW
(
info
->
pcwszRuntimeVersion
,
L"v4.0.0.0"
),
"Unexpected runtime version %s.
\n
"
,
ok
(
!
lstrcmpW
(
info
->
pcwszRuntimeVersion
,
L"v4.0.0.0"
),
"Unexpected runtime version %s.
\n
"
,
wine_dbgstr_w
(
info
->
pcwszRuntimeVersion
));
wine_dbgstr_w
(
info
->
pcwszRuntimeVersion
));
heap_
free
(
info
);
free
(
info
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
SxsLookupClrGuid
(
SXS_LOOKUP_CLR_GUID_FIND_SURROGATE
,
(
GUID
*
)
&
CLSID_SurrogateTest
,
NULL
,
NULL
,
0
,
&
buffer_size
);
ret
=
SxsLookupClrGuid
(
SXS_LOOKUP_CLR_GUID_FIND_SURROGATE
,
(
GUID
*
)
&
CLSID_SurrogateTest
,
NULL
,
NULL
,
0
,
&
buffer_size
);
ok
(
!
ret
,
"Unexpected return value %d.
\n
"
,
ret
);
ok
(
!
ret
,
"Unexpected return value %d.
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"Got %ld
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"Got %ld
\n
"
,
GetLastError
());
info
=
heap_
alloc
(
buffer_size
);
info
=
m
alloc
(
buffer_size
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
SxsLookupClrGuid
(
SXS_LOOKUP_CLR_GUID_FIND_SURROGATE
,
(
GUID
*
)
&
CLSID_SurrogateTest
,
NULL
,
info
,
ret
=
SxsLookupClrGuid
(
SXS_LOOKUP_CLR_GUID_FIND_SURROGATE
,
(
GUID
*
)
&
CLSID_SurrogateTest
,
NULL
,
info
,
buffer_size
,
&
buffer_size
);
buffer_size
,
&
buffer_size
);
...
@@ -142,7 +141,7 @@ static void run_test(void)
...
@@ -142,7 +141,7 @@ static void run_test(void)
ok
(
!
lstrcmpW
(
info
->
pcwszRuntimeVersion
,
L"v4.0.0.1"
),
"Unexpected runtime version %s.
\n
"
,
ok
(
!
lstrcmpW
(
info
->
pcwszRuntimeVersion
,
L"v4.0.0.1"
),
"Unexpected runtime version %s.
\n
"
,
wine_dbgstr_w
(
info
->
pcwszRuntimeVersion
));
wine_dbgstr_w
(
info
->
pcwszRuntimeVersion
));
heap_
free
(
info
);
free
(
info
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
SxsLookupClrGuid
(
SXS_LOOKUP_CLR_GUID_FIND_ANY
,
(
GUID
*
)
&
CLSID_SurrogateTest
,
NULL
,
NULL
,
0
,
&
buffer_size
);
ret
=
SxsLookupClrGuid
(
SXS_LOOKUP_CLR_GUID_FIND_ANY
,
(
GUID
*
)
&
CLSID_SurrogateTest
,
NULL
,
NULL
,
0
,
&
buffer_size
);
...
...
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