Commit 4d3713d6 authored by unknown's avatar unknown

os_rename.c:

  Portability fix. GetLongPathName is not supported by Windows95.


bdb/os_win32/os_rename.c:
  Portability fix. GetLongPathName is not supported by Windows95.
parent da29142e
......@@ -47,8 +47,11 @@ __os_rename(dbenv, oldname, newname, flags)
* There is no MoveFileEx for Win9x/Me, so we have to
* do the best we can.
*/
if (!GetLongPathName(oldname, oldbuf, sizeof oldbuf) ||
!GetLongPathName(newname, newbuf, sizeof newbuf)) {
LPTSTR FilePath;
if (!GetFullPathName(oldname, sizeof(oldbuf), oldbuf,
&FilePath) ||
!GetFullPathName(newname, sizeof(newbuf),newdbuf,
&FilePath)) {
ret = __os_win32_errno();
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