Subversion Repositories Kolibri OS

Rev

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

Rev 8944 Rev 8946
Line 329... Line 329...
329
{
329
{
330
	notify(_last_msg);
330
	notify(_last_msg);
331
	ExitProcess();
331
	ExitProcess();
332
}
332
}
Line -... Line 333...
-
 
333
 
-
 
334
:bool file_name_is_8_3(dword name)
-
 
335
{
-
 
336
	strlen(name);
-
 
337
	if (EAX>12) return false;
-
 
338
	$push eax
-
 
339
	strrchr(name, '.');
-
 
340
	$pop ebx
-
 
341
 
-
 
342
	//EAX = dot pos
-
 
343
	//EBX = name length
-
 
344
 
-
 
345
	if (EAX) {
-
 
346
		if (EBX-EAX>3) return false;
-
 
347
	} else {
-
 
348
		if (EBX>8) return false; 
-
 
349
	}
-
 
350
	return true;
-
 
351
}
333
 
352
 
334
//===================================================//
353
//===================================================//
335
//                                                   //
354
//                                                   //
336
//                   Convert Size                    //
355
//                   Convert Size                    //
337
//                                                   //
356
//                                                   //