Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
61ff8b6d
Commit
61ff8b6d
authored
Mar 01, 2003
by
ram@mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os_rename.c:
Portability fix. GetLongPathName is not supported by Windows95.
parent
8def9a3e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
bdb/os_win32/os_rename.c
bdb/os_win32/os_rename.c
+5
-2
No files found.
bdb/os_win32/os_rename.c
View file @
61ff8b6d
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment