Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GameDevWeek
Dependencies
Cpp
mirrage
Commits
f6817dab
Commit
f6817dab
authored
Feb 18, 2018
by
Florian Oetke
Browse files
added missing return value/error code check
parent
ab80b6a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mirrage/asset/src/asset_manager.cpp
View file @
f6817dab
...
...
@@ -142,7 +142,9 @@ namespace mirrage::asset {
#ifdef WINDOWS
_getcwd
(
cCurrentPath
,
sizeof
(
cCurrentPath
));
#else
getcwd
(
cCurrentPath
,
sizeof
(
cCurrentPath
));
if
(
getcwd
(
cCurrentPath
,
sizeof
(
cCurrentPath
))
==
nullptr
)
{
MIRRAGE_FAIL
(
"getcwd with max length "
<<
FILENAME_MAX
<<
" failed with error code "
<<
errno
);
}
#endif
return
cCurrentPath
;
...
...
Write
Preview
Supports
Markdown
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