From 4d3713d64dfd9b2f831933c93d54a17c0180ed84 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 1 Mar 2003 12:40:08 +0400 Subject: 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. --- bdb/os_win32/os_rename.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bdb') 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; } -- cgit v1.2.1