Jump to content

[Report] CopySelectedHost(s) to Clipboard issue


MasterRed

Recommended Posts

Hey,

For a couple of minutes i had a look inside my Peer List while running

µTorrent ( v.1.61 build 490 ) ( also in BETA 1.7 ! *UPDATE*) , and I had

to concider following problem by using the 'CopySelectedHosts' Function:

img1hm7.jpg

My String which i pasted in Notepad looked like this:

img1es0.jpg

Well there are now 2 things to take notice of:

1. The part of the String with this weird , for notepad not displayabel character

which I highlighted with a red underline.

2. And secondly that trough this 'bad clipboard copying' - action apearently glitch

which makes the peers not listed like it should.

The actually wanted effect should look like this inside notepad:

    X.X.X.X.cm.sunflower.com:55555
c-X-X-X-X.hsd1.md.comcast.net:42696

Well the fix for this littel coding mistake shouldn´t be something hard to do.

Just using "\n" as EscapeSequenze causes this Problem,

so replace the "\n" at the end of the Input String with "\r\n" before you call SetClipboardData inisde your Copy Clipboard Function.

Example:

    sprintf(szInputString,"%s\r\n",szHostName);

Greets MasterRed

PS. Thanks to the Programmers of µTorrent, i find your Torrent Clint pretty cool made.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...