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
67183eb9
Commit
67183eb9
authored
Apr 18, 1999
by
Uwe Bonnes
Committed by
Alexandre Julliard
Apr 18, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't announce the WNetDirectoryNotify capability WNetGetConnection.
Change the return value for local files.
parent
c48f04f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
wnet.h
include/wnet.h
+4
-0
network.c
misc/network.c
+14
-4
No files found.
include/wnet.h
View file @
67183eb9
...
...
@@ -5,6 +5,10 @@
#ifndef __WINE_WNET_H
#define __WINE_WNET_H
#define WNDN_MKDIR 1
#define WNDN_RMDIR 2
#define WNDN_MVDIR 3
#define WN_SUCCESS 0x0000
#define WN_NOT_SUPPORTED 0x0001
#define WN_NET_ERROR 0x0002
...
...
misc/network.c
View file @
67183eb9
...
...
@@ -287,6 +287,7 @@ int WINAPI WNetGetConnection16(LPCSTR lpLocalName,
{
const
char
*
path
;
TRACE
(
wnet
,
"local %s
\n
"
,
lpLocalName
);
if
(
lpLocalName
[
1
]
==
':'
)
{
int
drive
=
toupper
(
lpLocalName
[
0
])
-
'A'
;
...
...
@@ -304,6 +305,11 @@ int WINAPI WNetGetConnection16(LPCSTR lpLocalName,
strcpy
(
lpRemoteName
,
path
);
*
cbRemoteName
=
strlen
(
lpRemoteName
)
+
1
;
return
WN_SUCCESS
;
case
TYPE_FLOPPY
:
case
TYPE_HD
:
case
TYPE_CDROM
:
TRACE
(
wnet
,
"file is local
\n
"
);
return
WN_NOT_CONNECTED
;
default:
return
WN_BAD_LOCALNAME
;
}
...
...
@@ -390,7 +396,8 @@ int WINAPI WNetGetCaps16(WORD capability)
case
WNNC_ADMIN
:
/* returns mask of the supported administration functions */
/* not sure if long file names is a good idea */
return
WNNC_ADM_GetDirectoryType
|
WNNC_ADM_DirectoryNotify
return
WNNC_ADM_GetDirectoryType
/*|WNNC_ADM_DirectoryNotify*//*not yet supported*/
|
WNNC_ADM_LongNames
/*|WNNC_ADM_SetDefaultDrive*/
;
case
WNNC_ERROR
:
...
...
@@ -582,10 +589,13 @@ UINT WINAPI WNetGetDirectoryTypeA(LPSTR lpName,void *lpType)
/**************************************************************************
* WNetDirectoryNotify [USER.531]
*/
int
WINAPI
WNetDirectoryNotify16
(
HWND16
hwndOwner
,
void
*
lpDir
,
WORD
wOper
)
int
WINAPI
WNetDirectoryNotify16
(
HWND16
hwndOwner
,
LPSTR
lpDir
,
WORD
wOper
)
{
FIXME
(
wnet
,
"(%04x,%p,%x): stub
\n
"
,
hwndOwner
,
lpDir
,
wOper
);
return
WN_NO_NETWORK
;
FIXME
(
wnet
,
"(%04x,%s,%s): stub
\n
"
,
hwndOwner
,
lpDir
,(
wOper
==
WNDN_MKDIR
)
?
"WNDN_MKDIR"
:
(
wOper
==
WNDN_MVDIR
)
?
"WNDN_MVDIR"
:
(
wOper
==
WNDN_RMDIR
)
?
"WNDN_RMDIR"
:
"unknown"
);
return
WN_NOT_SUPPORTED
;
}
/**************************************************************************
...
...
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