Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7799 → Rev 7800

/programs/cmm/browser/WebView.c
515,7 → 515,7
 
bool GetLocalFileData(dword _path)
{
dword data, size;
dword data, size, url_from_file;
file_size stdcall (_path);
if (!EBX) {
return false;
523,7 → 523,13
size = EBX;
data = malloc(size);
ReadFile(0, size, data, _path);
url_from_file = strstri(data, "URL=");
if (UrlExtIs(_path, "url")) && (url_from_file != -1) {
strtrim(url_from_file);
OpenPage(url_from_file);
} else {
LoadInternalPage(data, size);
}
free(data);
return true;
}