rem: list.length++; 
context: function __winreg_enum_values(path){	var data = datablob_init();	var list = new Object();	list.length = 0;	var handle = this.open_path(path);	if (handle == undefined) {		return undefined;	}	var io = irpcObj();	io.input.handle      = handle;	io.input.name        = new Object();	io.input.name.length = 0;	io.input.name.size   = 128;	io.input.name.name   = "";	io.input.type        = 0;	io.input.value       = new Array(0);	io.input.size        = 1024;	io.input.length      = 0;	var idx;	for (idx=0;idx >= 0;idx++) {		io.input.enum_index = idx;		var status = this.winreg_EnumValue(io);		if (!status.is_ok) {			this.close(handle);			return list;		}		var out = io.output;		if (out.result == "WERR_MORE_DATA") {			io.input.size = io.input.size * 2;			io.input.name.size = io.input.name.size * 2;			idx--;			/* limit blobs to 1M */			if (io.input.size > 1000000) {				this.close(handle);				return list;			}			continue;		}		if (out.result != "WERR_OK") {			this.close(handle);			return list;		}		var el   = new Object();		el.name  = out.name.name;		el.type  = out.type;		el.rawvalue = out.value;		el.value = data.regToVar(el.rawvalue, el.type);		el.size  = out.size;		list[list.length] = el;		list.length++;	}	this.close(handle);	return list;}
meta: 1914	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1914/783851099b43236666b2fc0cc866834773d6e7b7/winreg.js/buggy/source4/scripting/libjs/winreg.js