]> git.sesse.net Git - freerainbowtables/blobdiff - Client Applications/rcracki_mt/rcrackiThread.cpp
add 2011 (C)
[freerainbowtables] / Client Applications / rcracki_mt / rcrackiThread.cpp
index 8123ba5d11d632a531c44fa94beefe31fd117315..e99d2e00dc591c038eb5bdbf6a462634aa4b548a 100644 (file)
@@ -3,9 +3,9 @@
  * RainbowCrack\r
  *\r
  * Copyright 2009, 2010 DaniĆ«l Niggebrugge <niggebrugge@fox-it.com>\r
- * Copyright 2009, 2010 James Nobis <frt@quelrod.net>\r
+ * Copyright 2009, 2010, 2011 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
@@ -21,7 +21,7 @@
  * 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
@@ -121,6 +121,7 @@ rcrackiThread::~rcrackiThread(void)
 \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
@@ -139,7 +140,7 @@ void rcrackiThread::PreCalculate()
 \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
@@ -179,7 +180,7 @@ void rcrackiThread::CheckAlarm()
 \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