When,as the wiki page says, the variable XBMC_HOME=../.. is set like this on windows, we get a very, very strange envorinment.

Line 407 should be -> if (GetFullPathNameW(strPathW, bufSize, buf, NULL) > 0) the return value is already tested in line 403