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:
thompsa 2008-04-15 04:44:32 +00:00
parent b5d5b802b9
commit f6323acd49

View File

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