[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r15280 - trunk/src/TortoiseShell/ContextMenu.cpp

From: Joseph Galbraith <galb_at_vandyke.com>
Date: Fri, 06 Feb 2009 11:58:10 -0700

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

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.