Subversion Repositories Kolibri OS

Rev

Rev 7799 | Rev 7801 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7799 Rev 7800
Line 513... Line 513...
513
	return was_changed;
513
	return was_changed;
514
}
514
}
Line 515... Line 515...
515
 
515
 
516
bool GetLocalFileData(dword _path)
516
bool GetLocalFileData(dword _path)
517
{
517
{
518
	dword data, size;
518
	dword data, size, url_from_file;
519
	file_size stdcall (_path);
519
	file_size stdcall (_path);
520
	if (!EBX) {
520
	if (!EBX) {
521
		return false;
521
		return false;
522
	} else {
522
	} else {
523
		size = EBX;
523
		size = EBX;
524
		data = malloc(size);
524
		data = malloc(size);
-
 
525
		ReadFile(0, size, data, _path);
-
 
526
		url_from_file = strstri(data, "URL=");
-
 
527
		if (UrlExtIs(_path, "url")) && (url_from_file != -1) {
-
 
528
			strtrim(url_from_file);
-
 
529
			OpenPage(url_from_file); 				
525
		ReadFile(0, size, data, _path);
530
		} else {
-
 
531
			LoadInternalPage(data, size);
526
		LoadInternalPage(data, size);
532
		}
527
		free(data);
533
		free(data);
528
		return true;
534
		return true;
529
	}
535
	}