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
04d5efdf
Commit
04d5efdf
authored
May 25, 2001
by
Marcus Meissner
Committed by
Alexandre Julliard
May 25, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't just assume everything is a Dos Device, or mirc will not get any
DCC sends.
parent
abc0686f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
dos_fs.c
files/dos_fs.c
+22
-5
No files found.
files/dos_fs.c
View file @
04d5efdf
...
...
@@ -2183,11 +2183,28 @@ DWORD WINAPI QueryDosDeviceA(LPCSTR devname,LPSTR target,DWORD bufsize)
memcpy
(
target
,
devices
,
min
(
bufsize
,
sizeof
(
devices
))
);
return
min
(
bufsize
,
sizeof
(
devices
));
}
strcpy
(
buffer
,
"
\\
DEV
\\
"
);
strcat
(
buffer
,
devname
);
if
((
s
=
strchr
(
buffer
,
':'
)))
*
s
=
'\0'
;
lstrcpynA
(
target
,
buffer
,
bufsize
);
return
strlen
(
buffer
)
+
1
;
/* In theory all that are possible and have been defined.
* Now just those below, since mirc uses it to check for special files.
*
* (It is more complex, and supports netmounted stuff, and \\.\ stuff,
* but currently we just ignore that.)
*/
#define CHECK(x) (strstr(devname,#x)==devname)
if
(
CHECK
(
con
)
||
CHECK
(
com
)
||
CHECK
(
lpt
)
||
CHECK
(
nul
))
{
strcpy
(
buffer
,
"
\\
DEV
\\
"
);
strcat
(
buffer
,
devname
);
if
((
s
=
strchr
(
buffer
,
':'
)))
*
s
=
'\0'
;
lstrcpynA
(
target
,
buffer
,
bufsize
);
return
strlen
(
buffer
)
+
1
;
}
else
{
if
(
strchr
(
devname
,
':'
)
||
devname
[
0
]
==
'\\'
)
{
/* This might be a DOS device we do not handle yet ... */
FIXME
(
"(%s) not detected as DOS device!
\n
"
,
devname
);
}
SetLastError
(
ERROR_DEV_NOT_EXIST
);
return
0
;
}
}
...
...
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