1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +03:00

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.
This commit is contained in:
unknown 2003-03-01 12:40:08 +04:00
parent da29142e84
commit 4d3713d64d

View File

@ -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;
}