If the .inf file did not have a Default entry for the registry key then write

out a blank value and close the brackets on the ndis_regvals array.
This commit is contained in:
Andrew Thompson 2008-04-15 04:44:32 +00:00
parent 19c3793335
commit a0a16e977c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178214

View file

@ -539,8 +539,10 @@ dump_defaultinfo(const struct section *s, const struct reg *r, int devidx)
continue;
fprintf(ofp, "\n\t{ \"%s\" }, %d },", reg->value == NULL ? "" :
stringcvt(reg->value), devidx);
break;
return;
}
/* Default registry entry missing */
fprintf(ofp, "\n\t{ \"\" }, %d },", devidx);
return;
}