[RAPPS_NEW] Use the actual buffer size instead of hardcoding a random number. CID...
authorMark Jansen <mark.jansen@reactos.org>
Wed, 13 Jul 2016 18:33:42 +0000 (18:33 +0000)
committerMark Jansen <mark.jansen@reactos.org>
Wed, 13 Jul 2016 18:33:42 +0000 (18:33 +0000)
svn path=/trunk/; revision=71933

reactos/base/applications/rapps_new/available.cpp

index 0a6e498..ff789a1 100644 (file)
     } \
 
 #define GET_STRING1(a, b)  \
     } \
 
 #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)  \
         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 };
         b[0] = '\0';
 
 LIST_ENTRY CachedEntriesHead = { &CachedEntriesHead, &CachedEntriesHead };