* Copyright 2009, 2010 Daniƫl Niggebrugge <niggebrugge@fox-it.com>\r
* Copyright 2009, 2010 James Nobis <frt@quelrod.net>\r
*\r
- * This file is part of racrcki_mt.\r
+ * This file is part of rcracki_mt.\r
*\r
* rcracki_mt is free software: you can redistribute it and/or modify\r
* it under the terms of the GNU General Public License as published by\r
* along with rcracki_mt. If not, see <http://www.gnu.org/licenses/>.\r
*/\r
\r
-#ifdef _WIN32\r
+#if defined(_WIN32) && !defined(__GNUC__)\r
#pragma warning(disable : 4786 4267 4018)\r
#endif\r
\r
\r
void rcrackiThread::PreCalculate()\r
{\r
+ //XXX is this correct for multiple threads?\r
for (t_nPos = t_nRainbowChainLen - 2 - t_ID; t_nPos >= 0; t_nPos -= t_count)\r
{\r
t_cwc.SetHash(t_TargetHash);\r
\r
void rcrackiThread::CheckAlarm()\r
{\r
- UINT4 i;\r
+ uint32 i;\r
for (i = 0; i < t_pChainsFound.size(); i++)\r
{\r
RainbowChain* t_pChain = t_pChainsFound[i];\r
\r
void rcrackiThread::CheckAlarmO()\r
{\r
- UINT4 i;\r
+ uint32 i;\r
for (i = 0; i < t_pChainsFoundO.size(); i++)\r
{\r
RainbowChainO* t_pChain = t_pChainsFoundO[i];\r