Commit 61ff8b6d authored by ram@mysql.r18.ru's avatar ram@mysql.r18.ru

os_rename.c:

  Portability fix. GetLongPathName is not supported by Windows95.
parent 8def9a3e
...@@ -47,8 +47,11 @@ __os_rename(dbenv, oldname, newname, flags) ...@@ -47,8 +47,11 @@ __os_rename(dbenv, oldname, newname, flags)
* There is no MoveFileEx for Win9x/Me, so we have to * There is no MoveFileEx for Win9x/Me, so we have to
* do the best we can. * do the best we can.
*/ */
if (!GetLongPathName(oldname, oldbuf, sizeof oldbuf) || LPTSTR FilePath;
!GetLongPathName(newname, newbuf, sizeof newbuf)) { if (!GetFullPathName(oldname, sizeof(oldbuf), oldbuf,
&FilePath) ||
!GetFullPathName(newname, sizeof(newbuf),newdbuf,
&FilePath)) {
ret = __os_win32_errno(); ret = __os_win32_errno();
goto done; goto done;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment