Subversion Repositories Kolibri OS

Rev

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

Rev 7227 Rev 7331
Line 201... Line 201...
201
	if (! GetFileInfo(fpath, #ReadFile_atr)) return true;
201
	if (! GetFileInfo(fpath, #ReadFile_atr)) return true;
202
	return false;
202
	return false;
203
}
203
}
Line 204... Line -...
204
 
-
 
205
 
-
 
206
:int GetFile(dword buf, filesize, read_path)
-
 
207
{
-
 
208
	int return_val = 0;
-
 
209
	BDVK ReadFile_atr;
-
 
210
	dword rBuf;
-
 
211
	if (! GetFileInfo(read_path, #ReadFile_atr))
-
 
212
	{
-
 
213
		rBuf = malloc(ReadFile_atr.sizelo);	
-
 
214
		if (! ReadFile(0, ReadFile_atr.sizelo, rBuf, read_path))
-
 
215
		{
-
 
216
			ESDWORD[buf] = rBuf;
-
 
217
			ESDWORD[filesize] = ReadFile_atr.sizelo;
-
 
218
			return_val = 1;
-
 
219
		}
-
 
220
	}
-
 
221
	free(rBuf);
-
 
222
	return return_val;
-
 
223
}
204
 
224
 
205
 
225
enum
206
enum
226
{
207
{
227
	DIRS_ALL,
208
	DIRS_ALL,