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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
0da3a201
Commit
0da3a201
authored
16 years ago
by
Sven Sandberg
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
d47bf970
ab9c6bec
Branches unavailable
Tags unavailable
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
mysys/default.c
mysys/default.c
+3
-1
No files found.
mysys/default.c
View file @
0da3a201
...
@@ -1024,10 +1024,12 @@ static size_t my_get_system_windows_directory(char *buffer, size_t size)
...
@@ -1024,10 +1024,12 @@ static size_t my_get_system_windows_directory(char *buffer, size_t size)
static
const
char
*
my_get_module_parent
(
char
*
buf
,
size_t
size
)
static
const
char
*
my_get_module_parent
(
char
*
buf
,
size_t
size
)
{
{
char
*
last
=
NULL
;
char
*
end
;
if
(
!
GetModuleFileName
(
NULL
,
buf
,
size
))
if
(
!
GetModuleFileName
(
NULL
,
buf
,
size
))
return
NULL
;
return
NULL
;
end
=
strend
(
buf
);
char
*
last
=
NULL
,
*
end
=
strend
(
buf
);
/*
/*
Look for the second-to-last \ in the filename, but hang on
Look for the second-to-last \ in the filename, but hang on
to a pointer after the last \ in case we're in the root of
to a pointer after the last \ in case we're in the root of
...
...
This diff is collapsed.
Click to expand it.
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