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
commit4d3713d64dfd9b2f831933c93d54a17c0180ed84 (patch)
treeb2c9981dfe3b595781bff07b41a62501a86f9541 /bdb
parentda29142e847d79c2887953b1945dec217e364200 (diff)
downloadmariadb-git-4d3713d64dfd9b2f831933c93d54a17c0180ed84.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;
}