pastebin - collaborative debugging tool
rovema.kpaste.net RSS


msnfs41client: Patches for nfs41 network provider+misc, 2024-12-09
Posted by Anonymous on Mon 9th Dec 2024 18:03
raw | new post

  1. From beecef021755b971f1c8016d7b8c86890176df9c Mon Sep 17 00:00:00 2001
  2. From: Roland Mainz <roland.mainz@nrubsig.org>
  3. Date: Mon, 9 Dec 2024 14:05:54 +0100
  4. Subject: [PATCH 1/3] dll: Cleanup nfs41_np.def for Visual Studio >= 2019
  5.  
  6. Cleanup nfs41_np.def for Visual Studio >= 2019
  7.  
  8. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  9. ---
  10. dll/nfs41_np.def | 28 ++++++++++++++--------------
  11.  1 file changed, 14 insertions(+), 14 deletions(-)
  12.  
  13. diff --git a/dll/nfs41_np.def b/dll/nfs41_np.def
  14. index dcafae8..277d961 100644
  15. --- a/dll/nfs41_np.def
  16. +++ b/dll/nfs41_np.def
  17. @@ -1,16 +1,16 @@
  18. +LIBRARY
  19.  
  20.  EXPORTS
  21. -       NPGetCaps                               @13
  22. -       NPAddConnection                     @17
  23. -       NPAddConnection3                    @38
  24. -       NPCancelConnection                  @18
  25. -       NPGetConnection                     @12
  26. -       NPOpenEnum                              @33    
  27. -       NPEnumResource                      @34
  28. -       NPCloseEnum                             @35    
  29. -       NPGetUniversalName                  @40
  30. -       NPGetResourceParent                 @41
  31. -       NPGetResourceInformation        @52
  32. -       NPLogonNotify                       @500
  33. -       NPPasswordChangeNotify          @501
  34. -
  35. +       NPGetCaps
  36. +       NPAddConnection
  37. +       NPAddConnection3
  38. +       NPCancelConnection
  39. +       NPGetConnection
  40. +       NPOpenEnum
  41. +       NPEnumResource
  42. +       NPCloseEnum
  43. +       NPGetUniversalName
  44. +       NPGetResourceParent
  45. +       NPGetResourceInformation
  46. +       NPLogonNotify
  47. +       NPPasswordChangeNotify
  48. --
  49. 2.45.1
  50.  
  51. From 789d4c5cea6b949912e03f4b701963133f3cb5ba Mon Sep 17 00:00:00 2001
  52. From: Roland Mainz <roland.mainz@nrubsig.org>
  53. Date: Mon, 9 Dec 2024 14:06:53 +0100
  54. Subject: [PATCH 2/3] dll: Add missing |NPGetConnection3()| to nfs41_np.def
  55.  
  56. Add missing |NPGetConnection3()| to nfs41_np.def
  57.  
  58. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  59. ---
  60. dll/nfs41_np.def | 1 +
  61.  1 file changed, 1 insertion(+)
  62.  
  63. diff --git a/dll/nfs41_np.def b/dll/nfs41_np.def
  64. index 277d961..8ac37a9 100644
  65. --- a/dll/nfs41_np.def
  66. +++ b/dll/nfs41_np.def
  67. @@ -6,6 +6,7 @@ EXPORTS
  68.         NPAddConnection3
  69.         NPCancelConnection
  70.         NPGetConnection
  71. +       NPGetConnection3
  72.         NPOpenEnum
  73.         NPEnumResource
  74.         NPCloseEnum
  75. --
  76. 2.45.1
  77.  
  78. From de8b9f8ba3d0e5fd7f9747daab521f8553a6845f Mon Sep 17 00:00:00 2001
  79. From: Roland Mainz <roland.mainz@nrubsig.org>
  80. Date: Mon, 9 Dec 2024 14:21:22 +0100
  81. Subject: [PATCH 3/3] dll: Debug output for |NPGetCaps()| prints garbage
  82.  |nIndex| string+wrong function name
  83.  
  84. dll: Debug output for |NPGetCaps()| prints garbage |nIndex| string
  85. and uses the wrong function name.
  86.  
  87. Reported-by: Josh Hurst <joshhurst@gmail.com>
  88. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  89. ---
  90. dll/nfs41_np.c | 4 ++--
  91.  1 file changed, 2 insertions(+), 2 deletions(-)
  92.  
  93. diff --git a/dll/nfs41_np.c b/dll/nfs41_np.c
  94. index 1e8a712..cb1148c 100644
  95. --- a/dll/nfs41_np.c
  96. +++ b/dll/nfs41_np.c
  97. @@ -434,7 +434,7 @@ NPGetCaps(
  98.  {
  99.      DWORD rc = 0;
  100.  
  101. -    DbgP((L"--> GetNetCaps(nIndex='%S'(=%d)\n",
  102. +    DbgP((L"--> NPGetCaps(nIndex='%s'(=%d)\n",
  103.          netcaps2string(nIndex), nIndex));
  104.      switch(nIndex) {
  105.          case WNNC_SPEC_VERSION:
  106. @@ -467,7 +467,7 @@ NPGetCaps(
  107.              break;
  108.      }
  109.  
  110. -    DbgP((L"<-- GetNetCaps returns %d\n", (int)rc));
  111. +    DbgP((L"<-- NPGetCaps returns %d\n", (int)rc));
  112.      return rc;
  113.  }
  114.  
  115. --
  116. 2.45.1

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at