Fix ROM Browser issue on Windows XP.
This commit is contained in:
parent
a2746d4785
commit
f5ef8d3359
|
@ -35,6 +35,7 @@
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<StackReserveSize>1</StackReserveSize>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -617,7 +617,8 @@ void CRomBrowser::FillRomList ( strlist & FileList, const CPath & BaseDirectory,
|
||||||
CPath SearchPath(BaseDirectory,"*.*");
|
CPath SearchPath(BaseDirectory,"*.*");
|
||||||
SearchPath.AppendDirectory(Directory.c_str());
|
SearchPath.AppendDirectory(Directory.c_str());
|
||||||
|
|
||||||
WriteTraceF(TraceDebug,__FUNCTION__ ": 1 %s",(LPCSTR)SearchPath);
|
//TODO: Fix exception on Windows XP (Visual Studio 2010+)
|
||||||
|
//WriteTraceF(TraceDebug,__FUNCTION__ ": 1 %s",(LPCSTR)SearchPath);
|
||||||
if (!SearchPath.FindFirst(CPath::_A_ALLFILES))
|
if (!SearchPath.FindFirst(CPath::_A_ALLFILES))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -625,7 +626,8 @@ void CRomBrowser::FillRomList ( strlist & FileList, const CPath & BaseDirectory,
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
WriteTraceF(TraceDebug,__FUNCTION__ ": 2 %s m_StopRefresh = %d",(LPCSTR)SearchPath,m_StopRefresh);
|
//TODO: Fix exception on Windows XP (Visual Studio 2010+)
|
||||||
|
//WriteTraceF(TraceDebug,__FUNCTION__ ": 2 %s m_StopRefresh = %d",(LPCSTR)SearchPath,m_StopRefresh);
|
||||||
if (m_StopRefresh) { break; }
|
if (m_StopRefresh) { break; }
|
||||||
|
|
||||||
if (SearchPath.IsDirectory())
|
if (SearchPath.IsDirectory())
|
||||||
|
|
Loading…
Reference in New Issue