From: jsteube Date: Thu, 31 Dec 2015 14:31:21 +0000 (+0100) Subject: Fix the GPU Platform fix X-Git-Tag: v3.00-beta~584^2~1 X-Git-Url: https://www.flypig.org.uk/git/?a=commitdiff_plain;h=700ed7dba7a049eab8f70fa34b8f80aa41a757c2;p=hashcat.git Fix the GPU Platform fix --- diff --git a/src/oclHashcat.c b/src/oclHashcat.c index a93c68c..fc46cb1 100644 --- a/src/oclHashcat.c +++ b/src/oclHashcat.c @@ -12294,10 +12294,14 @@ int main (int argc, char **argv) return (-1); } + + // user does not count with zero + + CL_platform_sel -= 1; } } - cl_platform_id CL_platform = CL_platforms[CL_platform_sel - 1]; + cl_platform_id CL_platform = CL_platforms[CL_platform_sel]; char CL_platform_vendor[INFOSZ];