mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
[Refs #87: Static Analysis] Be explicit about checking pointer
This commit is contained in:
@@ -541,12 +541,13 @@ AddrInfo GetAddr(wstring req)
|
||||
{
|
||||
wcsncpy_s(ret.funcName, file, 126);
|
||||
|
||||
wchar_t *voidparam = wcsstr(ret.funcName, L"(void)");
|
||||
|
||||
// remove stupid (void) for empty parameters
|
||||
if(wcsstr(ret.funcName, L"(void)"))
|
||||
if (voidparam != NULL)
|
||||
{
|
||||
wchar_t *a = wcsstr(ret.funcName, L"(void)");
|
||||
*(a+1) = L')';
|
||||
*(a+2) = 0;
|
||||
*(voidparam + 1) = L')';
|
||||
*(voidparam + 2) = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user