Author: mjansen
Date: Wed Jul 13 18:33:42 2016
New Revision: 71933
URL:
http://svn.reactos.org/svn/reactos?rev=71933&view=rev
Log:
[RAPPS_NEW] Use the actual buffer size instead of hardcoding a random number. CID 1363551
Modified:
trunk/reactos/base/applications/rapps_new/available.cpp
Modified: trunk/reactos/base/applications/rapps_new/available.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps_ne…
==============================================================================
--- trunk/reactos/base/applications/rapps_new/available.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps_new/available.cpp [iso-8859-1] Wed Jul 13
18:33:42 2016
@@ -18,11 +18,11 @@
} \
#define GET_STRING1(a, b) \
- if (!ParserGetString(a, b, MAX_PATH, FindFileData.cFileName)) \
+ if (!ParserGetString(a, b, _countof(b), FindFileData.cFileName)) \
continue;
#define GET_STRING2(a, b) \
- if (!ParserGetString(a, b, MAX_PATH, FindFileData.cFileName)) \
+ if (!ParserGetString(a, b, _countof(b), FindFileData.cFileName)) \
b[0] = '\0';
LIST_ENTRY CachedEntriesHead = { &CachedEntriesHead, &CachedEntriesHead };