mirror of
https://github.com/rvtr/TwlToolsRED.git
synced 2025-10-31 06:41:18 -04:00
マスタエディタ:ファイルコピーでの余分なエラー表示を削除。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@156 7061adef-622a-194b-ae81-725974e89856
This commit is contained in:
parent
977104a1fc
commit
f4462f2c3a
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -239,17 +239,17 @@ ECFormResult Form1::copyFile( System::String ^infile, System::String ^outfile )
|
|||||||
FILE *ifp = NULL;
|
FILE *ifp = NULL;
|
||||||
if( fopen_s( &ifp, pchInfile, "rb" ) != NULL )
|
if( fopen_s( &ifp, pchInfile, "rb" ) != NULL )
|
||||||
{
|
{
|
||||||
this->errMsg(
|
//this->errMsg(
|
||||||
"ファイルコピーにおいて入力ファイルのオープンに失敗しました。",
|
// "ファイルコピーにおいて入力ファイルのオープンに失敗しました。",
|
||||||
"In Copying file, the input file can't be opened." );
|
// "In Copying file, the input file can't be opened." );
|
||||||
return (ECFormResult::ERROR_FILE_OPEN);
|
return (ECFormResult::ERROR_FILE_OPEN);
|
||||||
}
|
}
|
||||||
FILE *ofp = NULL;
|
FILE *ofp = NULL;
|
||||||
if( fopen_s( &ofp, pchOutfile, "wb" ) != NULL ) // 同名ファイルを削除して新規にライト・バイナリ
|
if( fopen_s( &ofp, pchOutfile, "wb" ) != NULL ) // 同名ファイルを削除して新規にライト・バイナリ
|
||||||
{
|
{
|
||||||
this->errMsg(
|
//this->errMsg(
|
||||||
"ファイルコピーにおいて出力ファイルのオープンに失敗しました。",
|
// "ファイルコピーにおいて出力ファイルのオープンに失敗しました。",
|
||||||
"In Copying file, the output file can't be opened." );
|
// "In Copying file, the output file can't be opened." );
|
||||||
fclose(ifp);
|
fclose(ifp);
|
||||||
return (ECFormResult::ERROR_FILE_OPEN);
|
return (ECFormResult::ERROR_FILE_OPEN);
|
||||||
}
|
}
|
||||||
@ -268,18 +268,18 @@ ECFormResult Form1::copyFile( System::String ^infile, System::String ^outfile )
|
|||||||
|
|
||||||
if( datasize != fread(buf, 1, datasize, ifp) )
|
if( datasize != fread(buf, 1, datasize, ifp) )
|
||||||
{
|
{
|
||||||
this->errMsg(
|
//this->errMsg(
|
||||||
"ファイルコピーにおいて入力ファイルからのデータリードに失敗しました。",
|
// "ファイルコピーにおいて入力ファイルからのデータリードに失敗しました。",
|
||||||
"In Copying file, contents can't be read from the input file." );
|
// "In Copying file, contents can't be read from the input file." );
|
||||||
fclose(ofp);
|
fclose(ofp);
|
||||||
fclose(ifp);
|
fclose(ifp);
|
||||||
return ECFormResult::ERROR_FILE_READ;
|
return ECFormResult::ERROR_FILE_READ;
|
||||||
}
|
}
|
||||||
if( datasize != fwrite(buf, 1, datasize, ofp) )
|
if( datasize != fwrite(buf, 1, datasize, ofp) )
|
||||||
{
|
{
|
||||||
this->errMsg(
|
//this->errMsg(
|
||||||
"ファイルコピーにおいて出力ファイルからのデータライトに失敗しました。",
|
// "ファイルコピーにおいて出力ファイルからのデータライトに失敗しました。",
|
||||||
"In Copying file, contents can't be written to the output file." );
|
// "In Copying file, contents can't be written to the output file." );
|
||||||
fclose(ofp);
|
fclose(ofp);
|
||||||
fclose(ifp);
|
fclose(ifp);
|
||||||
return ECFormResult::ERROR_FILE_READ;
|
return ECFormResult::ERROR_FILE_READ;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user