1
0
forked from 0ad/0ad

bugfix: correct path now returned.

This was SVN commit r873.
This commit is contained in:
janwas 2004-08-01 01:08:54 +00:00
parent 358cf63bf3
commit 44a4262ab8

View File

@ -272,7 +272,7 @@ static int extract_events(Watch* w)
// convert filename from Windows BSTR
// (can't use wcstombs - FileName isn't 0-terminated)
std::string fn;
std::string fn = w->dir_name;
for(int i = 0; i < (int)fni->FileNameLength/2; i++)
fn += (char)fni->FileName[i];