Stefan Küng <tortoisesvn_at_gmail.com
<mailto:tortoisesvn_at_gmail.com?Subject=Re:%20svn%20commit:%20r18287%20-%20trunk/src/TortoiseProc/AppUtils.cpp>>
wrote:
>
> On Mon, Jan 11, 2010 at 02:23, Stefan Fuhrmann
> <stefanfuhrmann_at_alice-dsl.de> wrote:
> /> Author: sf /
> /> Date: 2010-01-10 17:23:29-0800 /
> /> New Revision: 18287 /
> /> /
> /> Modified: /
> /> Â trunk/src/TortoiseProc/AppUtils.cpp /
> /> /
> /> Log: /
> /> partially revert r18031 as AssocQueryString is broken under XP /
>
> broken how? MSDN doesn't mention anything about assocQueryString()
> being different under XP.
All of the following sequences return E_POINTER:
DWORD buflen = 0;
AssocQueryString(ASSOCF_INIT_DEFAULTTOSTAR, ASSOCSTR_COMMAND,
extensionToUse, _T("edit"), NULL, &buflen);
DWORD buflen = 2000;
AssocQueryString(ASSOCF_INIT_DEFAULTTOSTAR, ASSOCSTR_COMMAND,
extensionToUse, _T("edit"), NULL, &buflen);
DWORD buflen = 2000;
auto_buffer<TCHAR> cmdbuf (buflen + 1);
AssocQueryString(ASSOCF_INIT_DEFAULTTOSTAR, ASSOCSTR_COMMAND,
extensionToUse, _T("edit"), cmdbuf, &buflen);
In particular, cmdbuf remains undefined which causes application
to be undefined and usually not empty.
Some people with the same problem:
http://www.tek-tips.com/viewthread.cfm?qid=532156&page=14
-- Stefan^2.
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2436250
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-01-11 11:44:12 CET