Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kai-7 authored and kekxv committed May 20, 2020
1 parent f3e5c08 commit 842b087
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 103 deletions.
6 changes: 3 additions & 3 deletions src/BmpTool/BmpTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ namespace clangTools {
/**
* 写入到文件
*/
bool BMP::WriteBmp(unsigned char *BmpPath) {
int BMP::WriteBmp(unsigned char *BmpPath) {
if (Data == NULL) {
return false;
}
Expand Down Expand Up @@ -505,8 +505,8 @@ namespace clangTools {
unsigned long size = GetDataSize();

memcpy(&BmpPath[offset], Data, size);
offset += size;
return true;
// offset += size;
return offset += size;
}

} // namespace clangTools
2 changes: 1 addition & 1 deletion src/BmpTool/BmpTool.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class BMP
/**
* 写入到流
*/
bool WriteBmp(unsigned char *BmpPath);
int WriteBmp(unsigned char *BmpPath);
};
} // namespace clangTools

Expand Down
Loading

0 comments on commit 842b087

Please sign in to comment.