Commit 67183eb9 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

Don't announce the WNetDirectoryNotify capability WNetGetConnection.

Change the return value for local files.
parent c48f04f0
...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
#ifndef __WINE_WNET_H #ifndef __WINE_WNET_H
#define __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_SUCCESS 0x0000
#define WN_NOT_SUPPORTED 0x0001 #define WN_NOT_SUPPORTED 0x0001
#define WN_NET_ERROR 0x0002 #define WN_NET_ERROR 0x0002
......
...@@ -287,6 +287,7 @@ int WINAPI WNetGetConnection16(LPCSTR lpLocalName, ...@@ -287,6 +287,7 @@ int WINAPI WNetGetConnection16(LPCSTR lpLocalName,
{ {
const char *path; const char *path;
TRACE(wnet,"local %s\n",lpLocalName);
if (lpLocalName[1] == ':') if (lpLocalName[1] == ':')
{ {
int drive = toupper(lpLocalName[0]) - 'A'; int drive = toupper(lpLocalName[0]) - 'A';
...@@ -304,6 +305,11 @@ int WINAPI WNetGetConnection16(LPCSTR lpLocalName, ...@@ -304,6 +305,11 @@ int WINAPI WNetGetConnection16(LPCSTR lpLocalName,
strcpy( lpRemoteName, path ); strcpy( lpRemoteName, path );
*cbRemoteName = strlen(lpRemoteName) + 1; *cbRemoteName = strlen(lpRemoteName) + 1;
return WN_SUCCESS; return WN_SUCCESS;
case TYPE_FLOPPY:
case TYPE_HD:
case TYPE_CDROM:
TRACE(wnet,"file is local\n");
return WN_NOT_CONNECTED;
default: default:
return WN_BAD_LOCALNAME; return WN_BAD_LOCALNAME;
} }
...@@ -390,7 +396,8 @@ int WINAPI WNetGetCaps16(WORD capability) ...@@ -390,7 +396,8 @@ int WINAPI WNetGetCaps16(WORD capability)
case WNNC_ADMIN: case WNNC_ADMIN:
/* returns mask of the supported administration functions */ /* returns mask of the supported administration functions */
/* not sure if long file names is a good idea */ /* 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*/; |WNNC_ADM_LongNames/*|WNNC_ADM_SetDefaultDrive*/;
case WNNC_ERROR: case WNNC_ERROR:
...@@ -582,10 +589,13 @@ UINT WINAPI WNetGetDirectoryTypeA(LPSTR lpName,void *lpType) ...@@ -582,10 +589,13 @@ UINT WINAPI WNetGetDirectoryTypeA(LPSTR lpName,void *lpType)
/************************************************************************** /**************************************************************************
* WNetDirectoryNotify [USER.531] * 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); FIXME(wnet, "(%04x,%s,%s): stub\n",hwndOwner,
return WN_NO_NETWORK; lpDir,(wOper==WNDN_MKDIR)?
"WNDN_MKDIR":(wOper==WNDN_MVDIR)?"WNDN_MVDIR":
(wOper==WNDN_RMDIR)?"WNDN_RMDIR":"unknown");
return WN_NOT_SUPPORTED;
} }
/************************************************************************** /**************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment