summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <ram@mysql.r18.ru>2003-03-03 17:20:48 +0400
committerunknown <ram@mysql.r18.ru>2003-03-03 17:20:48 +0400
commitc68620e6cc79957c9ac430eaf46778ab6110baad (patch)
treef76ba44903d018dde814ea88cc9a26af4cea5d12
parent48df5b7537b38c2af6297cfffb0e9124940558bd (diff)
parent9ef473b96355944df3f6d2c84e83f82b5200785b (diff)
downloadmariadb-git-c68620e6cc79957c9ac430eaf46778ab6110baad.tar.gz
Merge rkalimullin@work.mysql.com:/home/bk/mysql-4.1
into mysql.r18.ru:/usr/home/ram/work/mysql-4.1
-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..67c3846649b 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), newbuf,
+ &FilePath)) {
ret = __os_win32_errno();
goto done;
}