IPB

Welcome Guest ( Log In | Register )

> foobar2000 Development Forum Rules

This forum is for developer discussions only. If you have a problem / bug report / idea / feature request that isn't related to foobar2000 SDK, post it in an appropiate forum instead - tech support questions go to support forum, everything else goes to general forum.
All non-developer posts on this forum will be removed. Continued abuse of this forum will result in admin actions (warnings, account suspension).

 
Reply to this topicStart new topic
SDK: mistake in pathUtils.cpp
JohanDeBock
post Nov 27 2009, 18:32
Post #1





Group: Developer
Posts: 250
Joined: 23-March 05
Member No.: 20866



string getFileNameWithoutExtension(string path) {
string fn = getFileName(path);
t_size split = path.lastIndexOf('.');
if (split == ~0) return fn;
else return fn.subString(0,split);
}

should be

string getFileNameWithoutExtension(string path) {
string fn = getFileName(path);
t_size split = fn.lastIndexOf('.');
if (split == ~0) return fn;
else return fn.subString(0,split);
}


--------------------
foo_softplaylists: http://tiny.cc/kh9m9
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th December 2014 - 17:41