Эх сурвалжийг харах

Z991239-4900 #comment 同步代码

Signed-Off-By: commit-hook
刘文涛80174520 2 жил өмнө
parent
commit
50d0c2e4ea

+ 2 - 2
Module/mod_upload/UploadFSM.cpp

@@ -1836,7 +1836,7 @@ bool UploadFSM::getFileContent(FILE* pFile,unsigned char* content,int beginPos,
 		return false;
 	}
 	if(fseek(pFile,beginPos,SEEK_SET)!=0){
-		DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI("getFileContent")("getFileContent fail,fseek beginPos =%d is error =%d",beginPos,(int)GetLastError());
+		DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI("getFileContent")("getFileContent fail,fseek beginPos =%d is error =%d",beginPos, errno);
 		return false;
 	}
 	unsigned char* pRead = content;//移动的指针
@@ -1858,7 +1858,7 @@ bool UploadFSM::getFileContent(FILE* pFile,unsigned char* content,int beginPos,
 		return true;
 	}else{
 		//Dbg("getFileContent fail,pRemaind =%d",pRemaind);
-		DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI("getFileContent")("getFileContent fail,pRemaind =%d, error=%d",pRemaind,(int)GetLastError());
+		DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI("getFileContent")("getFileContent fail,pRemaind =%d, error=%d",pRemaind, errno);
 		return false;
 	}
 }