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
f81694cc
Commit
f81694cc
authored
Nov 15, 2005
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made test loadable on NT 3.51 again (GetDiskFreeSpaceExA not present).
parent
7453b63a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
drive.c
dlls/kernel/tests/drive.c
+8
-2
No files found.
dlls/kernel/tests/drive.c
View file @
f81694cc
...
...
@@ -25,6 +25,8 @@
#include "winbase.h"
#include "winerror.h"
static
DWORD
(
WINAPI
*
pGetDiskFreeSpaceExA
)(
LPCSTR
,
PULARGE_INTEGER
,
PULARGE_INTEGER
,
PULARGE_INTEGER
);
static
void
test_GetDriveTypeA
(
void
)
{
char
drive
[]
=
"?:
\\
"
;
...
...
@@ -123,12 +125,13 @@ static void test_GetDiskFreeSpaceA(void)
/* win3.0 thru winME */
ok
(
total_clusters
<=
65535
,
"total clusters is %ld > 65535
\n
"
,
total_clusters
);
else
{
else
if
(
pGetDiskFreeSpaceExA
)
{
/* NT, 2k, XP : GetDiskFreeSpace shoud be accurate */
ULARGE_INTEGER
totEx
,
tot
,
d
;
tot
.
QuadPart
=
sectors_per_cluster
;
tot
.
QuadPart
=
(
tot
.
QuadPart
*
bytes_per_sector
)
*
total_clusters
;
ret
=
GetDiskFreeSpaceExA
(
drive
,
&
d
,
&
totEx
,
NULL
);
ret
=
p
GetDiskFreeSpaceExA
(
drive
,
&
d
,
&
totEx
,
NULL
);
ok
(
ret
,
"GetDiskFreeSpaceExA( %s ) failed. GetLastError=%ld
\n
"
,
drive
,
GetLastError
());
ok
(
bytes_per_sector
==
0
||
/* empty cd rom drive */
totEx
.
QuadPart
<=
tot
.
QuadPart
,
...
...
@@ -194,6 +197,9 @@ static void test_GetDiskFreeSpaceW(void)
START_TEST
(
drive
)
{
HANDLE
hkernel32
=
GetModuleHandleA
(
"kernel32"
);
pGetDiskFreeSpaceExA
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"GetDiskFreeSpaceExA"
);
test_GetDriveTypeA
();
test_GetDriveTypeW
();
...
...
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