Typos.
authorCarl Hetherington <cth@carlh.net>
Tue, 26 Nov 2013 21:40:22 +0000 (21:40 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 26 Nov 2013 21:40:22 +0000 (21:40 +0000)
asdcplib/src/KM_fileio.cpp

index 06076bf8680eedaa94d9dff1a5953203829bb2aa..b20ff7f7a04fd51ed464b54c1ab8e6e45d24e18f 100644 (file)
@@ -109,9 +109,9 @@ do_stat(const char* path, fstat_t* stat_info)
 #ifdef KM_WIN32
   UINT prev = ::SetErrorMode(SEM_FAILCRITICALERRORS|SEM_NOOPENFILEERRORBOX);
 
-  int const wn = MultiByteToWideChar (CP_UTF8, 0, filename, -1, 0, 0);
+  int const wn = MultiByteToWideChar (CP_UTF8, 0, path, -1, 0, 0);
   wchar_t* buffer = new wchar_t[wn];
-  if (MultiByteToWideChar (CP_UTF8, 0, filename, -1, buffer, wn) == 0) {
+  if (MultiByteToWideChar (CP_UTF8, 0, path, -1, buffer, wn) == 0) {
          delete[] buffer;
          return Kumu::RESULT_FAIL;
   }