Commit 47c86db5 authored by unknown's avatar unknown

Merge rkalimullin@work.mysql.com:/home/bk/mysql-4.1

into mysql.r18.ru:/usr/home/ram/work/mysql-4.1
parents 67abbc0b ba982893
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment