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
5647bce3
Commit
5647bce3
authored
Jul 02, 2008
by
Timothy Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix "C++ code in C file" syntax error in mysys/default.c
parent
9393ae3d
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 @
5647bce3
...
@@ -1015,10 +1015,12 @@ static uint my_get_system_windows_directory(char *buffer, uint size)
...
@@ -1015,10 +1015,12 @@ static uint my_get_system_windows_directory(char *buffer, uint 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
...
...
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