forked from KolibriOS/kolibrios
copyf: fix lib
git-svn-id: svn://kolibrios.org@4023 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
44a79ff624
commit
aa4751693f
@ -58,7 +58,7 @@
|
|||||||
free(dirbuf);
|
free(dirbuf);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (chrnum(in2, '/')>2) && (error = CreateDir(in2))
|
if (chrnum(in2, '/')>2) && (error = CreateDir(in2))
|
||||||
{
|
{
|
||||||
debug("Error: CopyFolder->CreateDir");
|
debug("Error: CopyFolder->CreateDir");
|
||||||
@ -84,7 +84,7 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
copyf_Action(filename);
|
copyf_Draw_Progress(filename);
|
||||||
if (error=CopyFile(#copy_from2, #copy_in2))
|
if (error=CopyFile(#copy_from2, #copy_in2))
|
||||||
{
|
{
|
||||||
if (fabs(error)==8) { debug("Stop copying."); break;} //TODO: may be need grobal var like stop_all
|
if (fabs(error)==8) { debug("Stop copying."); break;} //TODO: may be need grobal var like stop_all
|
||||||
@ -96,26 +96,45 @@
|
|||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef LANG_RUS
|
||||||
unsigned char *ERROR_TEXT[]={
|
unsigned char *ERROR_TEXT[]={
|
||||||
"Code #0 - No error",
|
"Š®¤ #0: ãᯥè®",
|
||||||
"Error #1 - Base or partition of a hard disk is not defined",
|
"Žè¨¡ª #1: ¥ ®¯à¥¤¥«¥ ¡ § ¨/¨«¨ à §¤¥« ¦ñá⪮£® ¤¨áª ",
|
||||||
"Error #2 - Function isn't supported for this file system",
|
"Žè¨¡ª #2: äãªæ¨ï ¥ ¯®¤¤¥à¦¨¢ ¥âáï ¤«ï í⮩ ä ©«®¢®© á¨á⥬ë",
|
||||||
"Error #3 - Unknown file system",
|
"Žè¨¡ª #3: ¥¨¢§¥á ï ä ©«®¢ ï á¨á⥬ ",
|
||||||
"Error #4 - Reserved, is never returned",
|
0,
|
||||||
"Error #5 - File or folder not found",
|
"Žè¨¡ª #5: ä ©« ¨«¨ ¯ ¯ª ¥ ©¤¥ë",
|
||||||
"Error #6 - End of file, EOF",
|
"Žè¨¡ª #6: ª®¥æ ä ©« ",
|
||||||
"Error #7 - Pointer lies outside of application memory",
|
"Žè¨¡ª #7: 㪠§ ⥫ì 室¨âáï ¢á¥ ¯ ¬ï⨠¯à¨«®¦¥¨ï",
|
||||||
"Error #8 - Too less disk space",
|
"Žè¨¡ª #8: ¥¤®áâ â®ç® ¬¥áâ ¤¨áª¥",
|
||||||
"Error #9 - FAT table is destroyed",
|
"Žè¨¡ª #9: â ¡«¨æ FAT à §àãè¥ ",
|
||||||
"Error #10 - Access denied",
|
"Žè¨¡ª #10: ¤®áâ㯠§ ¯à¥é¥",
|
||||||
"Error #11 - Device error",
|
"Žè¨¡ª #11: ®è¨¡ª ãáâனᢠ",
|
||||||
0, 0, 0, 0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
"Error #30 - Not enough memory",
|
"Žè¨¡ª #30: ¥¤®áâ â®ç® ¯ ¬ïâ¨",
|
||||||
"Error #31 - File is not executable",
|
"Žè¨¡ª #31: ä ©« ¥ ï¥âáï ¨á¯®«ï¥¬ë¬",
|
||||||
"Error #32 - Too many processes",
|
"Žè¨¡ª #32: ᫨誮¬ ¬®£® ¯à®æ¥áᮢ", 0};
|
||||||
0};
|
#else
|
||||||
|
unsigned char *ERROR_TEXT[]={
|
||||||
|
"Code #0 - No error, compleated successfully",
|
||||||
|
"Error #1 - Base or partition of a hard disk is not defined",
|
||||||
|
"Error #2 - Function isn't supported for this file system",
|
||||||
|
"Error #3 - Unknown file system",
|
||||||
|
0,
|
||||||
|
"Error #5 - File or folder not found",
|
||||||
|
"Error #6 - End of file",
|
||||||
|
"Error #7 - Pointer lies outside of application memory",
|
||||||
|
"Error #8 - Too less disk space",
|
||||||
|
"Error #9 - FAT table is destroyed",
|
||||||
|
"Error #10 - Access denied",
|
||||||
|
"Error #11 - Device error",
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
"Error #30 - Not enough memory",
|
||||||
|
"Error #31 - File is not executable",
|
||||||
|
"Error #32 - Too many processes", 0};
|
||||||
|
#endif
|
||||||
|
|
||||||
:dword get_error(int N)
|
:dword get_error(int N)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user