X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=Client%20Applications%2Frcracki_mt%2FRainbowCrack.cpp;h=2959787041a0f828af291ccaf256b48f7dc850f8;hb=371055825f09b5dc2ad00e5702ef4ffe18c419b0;hp=9814834a560c49476e052247f64f48b908590f89;hpb=dd1ecec588c8c5773cf1c4216039c600263d9eaa;p=freerainbowtables diff --git a/Client Applications/rcracki_mt/RainbowCrack.cpp b/Client Applications/rcracki_mt/RainbowCrack.cpp index 9814834..2959787 100644 --- a/Client Applications/rcracki_mt/RainbowCrack.cpp +++ b/Client Applications/rcracki_mt/RainbowCrack.cpp @@ -16,7 +16,7 @@ * 2009-01-04 - - Slightly modified (or "fulhack" as * we say in sweden) to support cain .lst files. * - * This file is part of racrcki_mt. + * This file is part of rcracki_mt. * * rcracki_mt is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -32,7 +32,7 @@ * along with rcracki_mt. If not, see . */ -#ifdef _WIN32 +#if defined(_WIN32) && !defined(__GNUC__) #pragma warning(disable : 4786 4267 4018) #endif @@ -49,7 +49,7 @@ #include #endif -#ifdef _WIN32 +#if defined(_WIN32) && !defined(__GNUC__) #pragma comment(lib, "libeay32.lib") #endif @@ -61,15 +61,15 @@ void GetTableList(string sWildCharPathName, vector& vPathName) //vPathName.clear(); string sPath; - int n = sWildCharPathName.find_last_of('\\'); + string::size_type n = sWildCharPathName.find_last_of('\\'); - if (n == (sWildCharPathName.size() - 1)) + if ( n == (sWildCharPathName.size() - 1) ) { sWildCharPathName = sWildCharPathName.substr(0, n); n = sWildCharPathName.find_last_of('\\'); } - if (n != -1) + if (n != string::npos) sPath = sWildCharPathName.substr(0, n + 1); _finddata_t fd;