From 9cf90bb5b6d8d943d3bd2553df5e3007629dc2ed Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Fri, 9 Apr 2021 10:43:00 +0200 Subject: [PATCH] increase maximum number of network drives Currently unmounting an NFS share fails if another user has the explorer open in the same share. This leads to orphaned network drives that cannot be removed (only be rebooting). When this happened 26 times (i.e. users logged on and off 26 times), mounting NFS shares does not work anymore (system error 1794). This workaround makes it work longer and allows for "fixing" the problem by rebooting the machine periodically. --- dll/nfs41_np.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/nfs41_np.h b/dll/nfs41_np.h index aed9c35..bee4e10 100644 --- a/dll/nfs41_np.h +++ b/dll/nfs41_np.h @@ -24,7 +24,7 @@ #define NFS41NP_MUTEX_NAME "NFS41NPMUTEX" -#define NFS41NP_MAX_DEVICES 26 +#define NFS41NP_MAX_DEVICES 1000 typedef struct __NFS41NP_NETRESOURCE { BOOL InUse;