diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-20 18:39:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-20 18:39:25 +0000 |
commit | 5b48d799fc3ebbf8bb0e9010f12954db24c91a32 (patch) | |
tree | 4ea9203bec7bd101fe5a2c916fb19af1e679a940 /plugins/Scriver/src/utils.cpp | |
parent | d34993c5bc29deb66cac57406af93619d27ef241 (diff) |
minor cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@4489 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src/utils.cpp')
-rw-r--r-- | plugins/Scriver/src/utils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Scriver/src/utils.cpp b/plugins/Scriver/src/utils.cpp index d445914a4f..a29c003844 100644 --- a/plugins/Scriver/src/utils.cpp +++ b/plugins/Scriver/src/utils.cpp @@ -292,8 +292,8 @@ TCHAR *GetRichTextWord(HWND hwnd, POINTL *ptl) static DWORD CALLBACK StreamOutCallback(DWORD_PTR dwCookie, LPBYTE pbBuff, LONG cb, LONG * pcb)
{
- MessageSendQueueItem * msi = (MessageSendQueueItem *) dwCookie;
- msi->sendBuffer = (char *)mir_realloc(msi->sendBuffer, msi->sendBufferSize + cb + 2);
+ MessageSendQueueItem *msi = (MessageSendQueueItem *) dwCookie;
+ msi->sendBuffer = (char*)mir_realloc(msi->sendBuffer, msi->sendBufferSize + cb + 2);
memcpy (msi->sendBuffer + msi->sendBufferSize, pbBuff, cb);
msi->sendBufferSize += cb;
*((TCHAR *)(msi->sendBuffer+msi->sendBufferSize)) = '\0';
@@ -316,7 +316,7 @@ TCHAR *GetRichEditSelection(HWND hwnd) msi.sendBuffer = NULL;
msi.sendBufferSize = 0;
SendMessage(hwnd, EM_STREAMOUT, (WPARAM)dwFlags, (LPARAM)& stream);
- return (TCHAR *)msi.sendBuffer;
+ return (TCHAR*)msi.sendBuffer;
}
return NULL;
}
|