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
addf895c
Commit
addf895c
authored
Nov 11, 2007
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Loosen requirements on what QueryDosDevice returns.
parent
8de6c8b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
volume.c
dlls/kernel32/tests/volume.c
+4
-11
No files found.
dlls/kernel32/tests/volume.c
View file @
addf895c
...
...
@@ -21,12 +21,6 @@
#include "wine/test.h"
#include "winbase.h"
#define CDROM "CDROM"
#define FLOPPY "FLOPPY"
#define HARDISK "HARDDISK"
#define LANMAN "LANMANREDIRECTOR"
#define RAMDISK "RAMDISK"
static
HINSTANCE
hdll
;
static
BOOL
(
WINAPI
*
pGetVolumeNameForVolumeMountPointA
)(
LPCSTR
,
LPSTR
,
DWORD
);
static
BOOL
(
WINAPI
*
pGetVolumeNameForVolumeMountPointW
)(
LPCWSTR
,
LPWSTR
,
DWORD
);
...
...
@@ -38,17 +32,16 @@ static void test_query_dos_deviceA(void)
char
drivestr
[]
=
"a:"
;
char
*
p
,
buffer
[
2000
];
DWORD
ret
;
BOOL
found
=
FALSE
;
for
(;
drivestr
[
0
]
<=
'z'
;
drivestr
[
0
]
++
)
{
ret
=
QueryDosDeviceA
(
drivestr
,
buffer
,
sizeof
(
buffer
));
if
(
ret
)
{
for
(
p
=
buffer
;
*
p
;
p
++
)
*
p
=
toupper
(
*
p
);
todo_wine
ok
(
strstr
(
buffer
,
CDROM
)
||
strstr
(
buffer
,
FLOPPY
)
||
strstr
(
buffer
,
HARDISK
)
||
strstr
(
buffer
,
LANMAN
)
||
strstr
(
buffer
,
RAMDISK
),
"expect the string %s contains %s,%s,%s,%s or %s
\n
"
,
buffer
,
CDROM
,
FLOPPY
,
HARDISK
,
LANMAN
,
RAMDISK
);
if
(
strstr
(
buffer
,
"HARDDISK"
)
||
strstr
(
buffer
,
"RAMDISK"
))
found
=
TRUE
;
}
}
todo_wine
ok
(
found
,
"expected at least one devicename to contain HARDDISK or RAMDISK
\n
"
);
}
static
void
test_GetVolumeNameForVolumeMountPointA
(
void
)
...
...
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