Author: pschweitzer
Date: Sun Dec 11 09:15:16 2016
New Revision: 73448
URL:
http://svn.reactos.org/svn/reactos?rev=73448&view=rev
Log:
[NET/USE]
Get rid of COUNT_OF
Modified:
trunk/reactos/base/applications/network/net/cmdUse.c
Modified: trunk/reactos/base/applications/network/net/cmdUse.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/net/cmdUse.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/net/cmdUse.c [iso-8859-1] Sun Dec 11 09:15:16
2016
@@ -8,8 +8,6 @@
*/
#include "net.h"
-
-#define COUNT_OF(a) (sizeof(a) / sizeof(a[0]))
static
DWORD
@@ -133,7 +131,7 @@
BOOL Persist = FALSE;
NETRESOURCE lpNet;
WCHAR Access[256];
- DWORD OutFlags = 0, Size = COUNT_OF(Access);
+ DWORD OutFlags = 0, Size = ARRAYSIZE(Access);
Len = wcslen(argv[3]);
if (Len < 4)