[RAPPS_NEW] Use the actual buffer size instead of hardcoding a random number. CID...
[reactos.git] / reactos / base / applications / rapps_new / available.cpp
index 0a6e498..ff789a1 100644 (file)
     } \
 
 #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 };