Fixed some of the memory leaks and Clang warnings.
DrMemory and Valgrind work with regular debug builds.
This commit is contained in:
1 parent
28e2417ef9
commit
c5b7c0ad16
25 files changed
+74
-97
No files matched your search
@@ -246,15 +246,7 @@ int pinball::get_rc_int(int uID, int* dst)
|
||||
return 1;
|
||||
}
|
||||
|
||||
int pinball::make_path_name(LPSTR lpFilename, LPCSTR lpString2, int nSize)
|
||||
std::string pinball::make_path_name(const std::string& fileName)
|
||||
{
|
||||
auto base_path = SDL_GetBasePath();
|
||||
if (!base_path)
|
||||
{
|
||||
strcat(lpFilename,"?");
|
||||
return 1;
|
||||
}
|
||||
strncpy(lpFilename, base_path, nSize);
|
||||
strcat(lpFilename, lpString2);
|
||||
return 0;
|
||||
return winmain::BasePath + fileName;
|
||||
}
|
||||
Reference in new issue
Block a user