summaryrefslogtreecommitdiff
path: root/bdb
diff options
context:
space:
mode:
authorram@mysql.r18.ru <>2003-03-01 12:40:08 +0400
committerram@mysql.r18.ru <>2003-03-01 12:40:08 +0400
commit61ff8b6db3b5ec97ee143f5314d1849ea0926cd2 (patch)
treeb2c9981dfe3b595781bff07b41a62501a86f9541 /bdb
parent8def9a3e9395dcaf735e9d4b974dc9b8749c2a41 (diff)
downloadmariadb-git-61ff8b6db3b5ec97ee143f5314d1849ea0926cd2.tar.gz
os_rename.c:
Portability fix. GetLongPathName is not supported by Windows95.
Diffstat (limited to 'bdb')
-rw-r--r--bdb/os_win32/os_rename.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/bdb/os_win32/os_rename.c b/bdb/os_win32/os_rename.c
index ba14cb73bb0..35b94d9d834 100644
--- a/bdb/os_win32/os_rename.c
+++ b/bdb/os_win32/os_rename.c
@@ -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;
}