mirror of https://github.com/PCSX2/pcsx2.git
Small round of patches for various issues.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5830 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
18b345fab9
commit
b99aa05cbf
|
@ -123,11 +123,15 @@ protected:
|
|||
int maxcount = std::max<int>(m_maxcount * 3 / 2, 10000);
|
||||
Vertex* vertices = (Vertex*)_aligned_malloc(sizeof(Vertex) * maxcount, 32);
|
||||
|
||||
if(m_vertices != NULL)
|
||||
if (m_vertices != NULL && vertices != NULL)
|
||||
{
|
||||
memcpy(vertices, m_vertices, sizeof(Vertex) * m_maxcount);
|
||||
_aligned_free(m_vertices);
|
||||
}
|
||||
else // very bad!
|
||||
{
|
||||
printf("GSdx: failed to allocate %d bytes for verticles. We will proceed to crash now.\n", sizeof(Vertex) * maxcount);
|
||||
}
|
||||
|
||||
m_vertices = vertices;
|
||||
m_maxcount = maxcount - 100;
|
||||
|
|
|
@ -129,6 +129,7 @@ void GSThread::CloseThread()
|
|||
{
|
||||
if(WaitForSingleObject(m_hThread, 5000) != WAIT_OBJECT_0)
|
||||
{
|
||||
printf("GSdx: WARNING: GSThread Thread did not close itself in time. Assuming hung. Terminating.\n");
|
||||
TerminateThread(m_hThread, 1);
|
||||
}
|
||||
|
||||
|
|
|
@ -207,8 +207,9 @@ void DoFullDump()
|
|||
}
|
||||
fprintf(dump,"#### END OF DUMP.\n\n");
|
||||
}
|
||||
fclose(dump);
|
||||
}
|
||||
fclose(dump);
|
||||
|
||||
dump = fopen( "logs/effects.txt", "wt" );
|
||||
if (dump)
|
||||
{
|
||||
|
|
|
@ -108,6 +108,7 @@ void DspCloseLibrary()
|
|||
running=false;
|
||||
if(WaitForSingleObject(hUpdateThread,1000)==WAIT_TIMEOUT)
|
||||
{
|
||||
ConLog("SPU2-X: WARNING: DSP Thread did not close itself in time. Assuming hung. Terminating.\n");
|
||||
TerminateThread(hUpdateThread,1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue