-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -227,10 +227,10 @@ bool CClipboard::SetHtmlText(const CNativeW& cmemBUf) | |
size_t size = cmemUtf8.GetStringLength() + 134; | ||
cmemHeader.AppendString("Version:0.9\r\n"); | ||
cmemHeader.AppendString("StartHTML:00000097\r\n"); | ||
sprintf( szFormat, "EndHTML:%08d\r\n", size + 36 ); | ||
sprintf( szFormat, "EndHTML:%08Id\r\n", size + 36 ); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
m-tmatma
Author
Member
|
||
cmemHeader.AppendString(szFormat); | ||
cmemHeader.AppendString("StartFragment:00000134\r\n"); | ||
sprintf( szFormat, "EndFragment:%08d\r\n", size ); | ||
sprintf( szFormat, "EndFragment:%08Id\r\n", size ); | ||
cmemHeader.AppendString(szFormat); | ||
cmemHeader.AppendString("<html><body>\r\n<!--StartFragment -->\r\n"); | ||
CNativeA cmemFooter; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
この書き方 %Id は Microsoft 独自仕様です。他コンパイラでは正しく動かない可能性があります。
MinGW64では「'I' という型指定子はない」という警告が出ますが、単に無視されるだけみたいでした。
結果として期待通り64bit整数が出力されるようなので、MinGW64に関しては影響なさそうです。
iPhoneですごい量の修正に見えたので帰宅してから見てます。
あらためて見直したらちょこっとだったので 😢 でした。