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:
parent
b5d5b802b9
commit
f6323acd49
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user