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
c4fb1f61
Commit
c4fb1f61
authored
May 21, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Get rid of the hardcoded NUL device in QueryDosDeviceW.
parent
f32600d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
volume.c
dlls/kernel32/volume.c
+1
-4
No files found.
dlls/kernel32/volume.c
View file @
c4fb1f61
...
@@ -1258,7 +1258,6 @@ BOOL WINAPI DefineDosDeviceA(DWORD flags, LPCSTR devname, LPCSTR targetpath)
...
@@ -1258,7 +1258,6 @@ BOOL WINAPI DefineDosDeviceA(DWORD flags, LPCSTR devname, LPCSTR targetpath)
DWORD
WINAPI
QueryDosDeviceW
(
LPCWSTR
devname
,
LPWSTR
target
,
DWORD
bufsize
)
DWORD
WINAPI
QueryDosDeviceW
(
LPCWSTR
devname
,
LPWSTR
target
,
DWORD
bufsize
)
{
{
static
const
WCHAR
auxW
[]
=
{
'A'
,
'U'
,
'X'
,
0
};
static
const
WCHAR
auxW
[]
=
{
'A'
,
'U'
,
'X'
,
0
};
static
const
WCHAR
nulW
[]
=
{
'N'
,
'U'
,
'L'
,
0
};
static
const
WCHAR
prnW
[]
=
{
'P'
,
'R'
,
'N'
,
0
};
static
const
WCHAR
prnW
[]
=
{
'P'
,
'R'
,
'N'
,
0
};
static
const
WCHAR
comW
[]
=
{
'C'
,
'O'
,
'M'
,
0
};
static
const
WCHAR
comW
[]
=
{
'C'
,
'O'
,
'M'
,
0
};
static
const
WCHAR
lptW
[]
=
{
'L'
,
'P'
,
'T'
,
0
};
static
const
WCHAR
lptW
[]
=
{
'L'
,
'P'
,
'T'
,
0
};
...
@@ -1376,7 +1375,7 @@ DWORD WINAPI QueryDosDeviceW( LPCWSTR devname, LPWSTR target, DWORD bufsize )
...
@@ -1376,7 +1375,7 @@ DWORD WINAPI QueryDosDeviceW( LPCWSTR devname, LPWSTR target, DWORD bufsize )
WCHAR
*
p
=
target
;
WCHAR
*
p
=
target
;
int
i
;
int
i
;
if
(
bufsize
<=
(
sizeof
(
auxW
)
+
sizeof
(
nulW
)
+
sizeof
(
prnW
))
/
sizeof
(
WCHAR
))
if
(
bufsize
<=
(
sizeof
(
auxW
)
+
sizeof
(
prnW
))
/
sizeof
(
WCHAR
))
{
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
return
0
;
return
0
;
...
@@ -1386,8 +1385,6 @@ DWORD WINAPI QueryDosDeviceW( LPCWSTR devname, LPWSTR target, DWORD bufsize )
...
@@ -1386,8 +1385,6 @@ DWORD WINAPI QueryDosDeviceW( LPCWSTR devname, LPWSTR target, DWORD bufsize )
memcpy
(
p
,
auxW
,
sizeof
(
auxW
)
);
memcpy
(
p
,
auxW
,
sizeof
(
auxW
)
);
p
+=
sizeof
(
auxW
)
/
sizeof
(
WCHAR
);
p
+=
sizeof
(
auxW
)
/
sizeof
(
WCHAR
);
memcpy
(
p
,
nulW
,
sizeof
(
nulW
)
);
p
+=
sizeof
(
nulW
)
/
sizeof
(
WCHAR
);
memcpy
(
p
,
prnW
,
sizeof
(
prnW
)
);
memcpy
(
p
,
prnW
,
sizeof
(
prnW
)
);
p
+=
sizeof
(
prnW
)
/
sizeof
(
WCHAR
);
p
+=
sizeof
(
prnW
)
/
sizeof
(
WCHAR
);
...
...
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