* confwin.c: Fix bug that allows garbage for non-existent user config filename on Windows.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@303 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Eric Weddington 2003-04-03 16:46:47 +00:00
parent d5dee86c58
commit 0992123e64
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-04-03 Eric B. Weddington <eric@umginc.net>
* confwin.c: Fix bug that allows garbage for non-existent user
config filename on Windows.
2003-03-24 Theodore A. Roth <troth@openavr.org>
* NEWS: Add note about avr910 support.

View File

@ -30,6 +30,8 @@ static char *filename;
void win_sys_config_set(char sys_config[PATH_MAX])
{
sys_config[0] = 0;
/* Use Windows API call to search for the Windows default system config file.*/
SearchPath(NULL, "avrdude.conf", NULL, PATH_MAX, sys_config, &filename);
return;
@ -38,6 +40,8 @@ void win_sys_config_set(char sys_config[PATH_MAX])
void win_usr_config_set(char usr_config[PATH_MAX])
{
usr_config[0] = 0;
/* Use Windows API call to search for the Windows default user config file. */
SearchPath(NULL, "avrdude.rc", NULL, PATH_MAX, usr_config, &filename);
return;