From c79a71ec4d95f8f3ef8d087dad059bcdc817cf73 Mon Sep 17 00:00:00 2001 From: janwas Date: Tue, 3 May 2005 05:16:10 +0000 Subject: [PATCH] This was SVN commit r2225. --- source/ps/scripting/JSInterface_VFS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ps/scripting/JSInterface_VFS.cpp b/source/ps/scripting/JSInterface_VFS.cpp index 31b467d683..1a1d70f229 100644 --- a/source/ps/scripting/JSInterface_VFS.cpp +++ b/source/ps/scripting/JSInterface_VFS.cpp @@ -26,7 +26,7 @@ static void BuildFileListCB(const char* path, const vfsDirEnt* ent, void* contex { BuildFileListState* s = (BuildFileListState*)context; - jsval val = ToJSVal( CStr ( result ) ); + jsval val = ToJSVal( CStr ( path ) ); // note: is already directory + name! JS_SetElement(s->cx, s->filename_array, s->cur_idx, &val);