Hi
I have a std::vector<DWORD> that I want to loop through and compare each DWORD against a defined value. The problem is that either "&", "&&" or "==" will currupt the vector.
How can I do this check without messing up the vector?
#define StopLoadingThread 0xffffffff
std::vector<DWORD> LoadThread_RequestFiles;
for(int i=0;(int)LoadThread_RequestFiles.size();i++)
{
if(LoadThread_RequestFiles[i] && StopLoadingThread) //Fix comparison
{
m_quit = true;
}
}
for(int i=0;(int)LoadThread_RequestFiles.size();i++)
{
if(LoadThread_RequestFiles[i] == StopLoadingThread) //Fix comparison
{
m_quit = true;
}
}