fix a couple more, maybe

This commit is contained in:
DarthArgus
2014-10-27 15:33:52 -07:00
parent 35df8b2c1c
commit 9e6f200300
2 changed files with 1 additions and 2 deletions
@@ -141,7 +141,7 @@ void CallStackCollectorNamespace::Node::addCallStack(uint32 * const callStack)
{
//-- Create new callstack
uint32 * const newCallStack = new uint32[CALLSTACK_DEPTH];
memcpy(newCallStack, callStack, (*newCallStack));
memcpy(newCallStack, callStack, sizeof(*newCallStack));
CallStackEntry callStackEntry;
callStackEntry.m_callStack = newCallStack;
@@ -1599,7 +1599,6 @@ bool Os::getUserName(char *buffer, int &bufferSize)
DWORD windowsBufferSize = static_cast<DWORD>(bufferSize);
buffer[0] = '\0';
bool result = GetUserName(buffer, &windowsBufferSize) == TRUE;
bufferSize = static_cast<int>(bufferSize);
return result;
}