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
26ad8122
Commit
26ad8122
authored
Nov 04, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Nov 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
virtdisk/tests: Use CRT allocation functions.
parent
eea358e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
virtdisk.c
dlls/virtdisk/tests/virtdisk.c
+2
-3
No files found.
dlls/virtdisk/tests/virtdisk.c
View file @
26ad8122
...
...
@@ -20,7 +20,6 @@
#include "windef.h"
#include "initguid.h"
#include "virtdisk.h"
#include "wine/heap.h"
#include "wine/test.h"
static
DWORD
(
WINAPI
*
pGetStorageDependencyInformation
)(
HANDLE
,
GET_STORAGE_DEPENDENCY_FLAG
,
ULONG
,
STORAGE_DEPENDENCY_INFO
*
,
ULONG
*
);
...
...
@@ -37,7 +36,7 @@ static void test_GetStorageDependencyInformation(void)
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"Expected a handle
\n
"
);
size
=
sizeof
(
STORAGE_DEPENDENCY_INFO
);
info
=
heap_
alloc
(
size
);
info
=
m
alloc
(
size
);
ret
=
pGetStorageDependencyInformation
(
handle
,
GET_STORAGE_DEPENDENCY_FLAG_DISK_HANDLE
,
0
,
info
,
0
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %ld
\n
"
,
ret
);
...
...
@@ -45,7 +44,7 @@ static void test_GetStorageDependencyInformation(void)
ret
=
pGetStorageDependencyInformation
(
handle
,
GET_STORAGE_DEPENDENCY_FLAG_DISK_HANDLE
,
size
,
NULL
,
0
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %ld
\n
"
,
ret
);
heap_
free
(
info
);
free
(
info
);
CloseHandle
(
handle
);
}
...
...
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