Technically speaking an HWND should be a LONG_PTR...
on x64 it might be more than 32bits (as unlikely as
it is.)
Thanks,
Joseph
Stefan Küng wrote:
> Author: steveking
> Date: 2009-02-06 10:43:13-0800
> New Revision: 15280
>
> Modified:
> trunk/src/TortoiseShell/ContextMenu.cpp
>
> Log:
> Properly cast the HWND handle to a LONG.
>
> Modified: trunk/src/TortoiseShell/ContextMenu.cpp
> Url: http://tortoisesvn.tigris.org/source/browse/tortoisesvn/trunk/src/TortoiseShell/ContextMenu.cpp?view=diff&pathrev=15280&r1=15279&r2=15280
> ==============================================================================
> --- trunk/src/TortoiseShell/ContextMenu.cpp (original)
> +++ trunk/src/TortoiseShell/ContextMenu.cpp 2009-02-06 10:43:13-0800
> @@ -1816,7 +1816,7 @@
> } // switch (id_it->second)
> svnCmd += _T(" /hwnd:");
> TCHAR buf[30];
> - _stprintf_s(buf, 30, _T("%d"), lpcmi->hwnd);
> + _stprintf_s(buf, 30, _T("%ld"), (LONG)lpcmi->hwnd);
> svnCmd += buf;
> myIDMap.clear();
> myVerbsIDMap.clear();
>
> ------------------------------------------------------
> http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=3547&dsMessageId=1114139
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=1114172
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-02-06 19:57:38 CET