[SNDVOL32] Add the small line dialog
[reactos.git] / base / applications / regedit / find.c
index 4b9e4cd..98fe43f 100644 (file)
@@ -150,6 +150,9 @@ BOOL RegFindRecurse(
     if (DoEvents())
         return FALSE;
 
+    if(wcslen(pszSubKey) >= _countof(szSubKey))
+        return FALSE;
+
     wcscpy(szSubKey, pszSubKey);
     hSubKey = NULL;