summaryrefslogtreecommitdiff
path: root/bdb
diff options
context:
space:
mode:
authorunknown <ram@mysql.r18.ru>2003-03-01 12:40:08 +0400
committerunknown <ram@mysql.r18.ru>2003-03-01 12:40:08 +0400
commit76570ab88838589f9fb1fc4fe43798655402e6fe (patch)
treeb2c9981dfe3b595781bff07b41a62501a86f9541 /bdb
parent203bc9ec9c96a2e08fb6777ea041a7a2bbc00b4f (diff)
downloadmariadb-git-76570ab88838589f9fb1fc4fe43798655402e6fe.tar.gz
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.
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;
}