Lines Matching refs:foundbuf
188 char *namebuf, *foundbuf; in mingw_rootify() local
208 foundbuf = XNEWVEC (char, maxlen); in mingw_rootify()
209 foundbuf[0] = '\0'; in mingw_rootify()
210 if (!namebuf || !foundbuf) in mingw_rootify()
215 if (foundbuf) in mingw_rootify()
216 free (foundbuf); in mingw_rootify()
230 if (strcasecmp (namebuf, foundbuf) > 0) in mingw_rootify()
231 strcpy (foundbuf, namebuf); in mingw_rootify()
236 if (!foundbuf[0]) in mingw_rootify()
238 free (foundbuf); in mingw_rootify()
244 res = RegOpenKey (hKey, foundbuf, &hTmp); in mingw_rootify()
246 free (foundbuf); in mingw_rootify()
262 foundbuf = XNEWVEC (char, maxlen + strlen (executable)); in mingw_rootify()
263 if (!foundbuf) in mingw_rootify()
265 free (foundbuf); in mingw_rootify()
270 res = RegQueryValueEx (hTmp, "InstallLocation", 0, NULL, (LPBYTE) foundbuf, in mingw_rootify()
275 free (foundbuf); in mingw_rootify()
281 return tack_on_executable (foundbuf, executable); in mingw_rootify()