diff --git a/docs/changes.txt b/docs/changes.txt index 1d85e57a0..86857640d 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -38,6 +38,7 @@ - Building: Added hashcat32.dll and hashcat64.dll makefile targets for building hashcat windows libraries - Building: Added production flag in Makefile to disable all the GCC compiler options needed only for development - Building: Removed access to readlink() on FreeBSD +- Building: For CYGWIN prefer to use "opencl.dll" (installed by drivers) instead of optional "cygOpenCL-1.dll" - Events: Added new event EVENT_WEAK_HASH_ALL_CRACKED if all hashes have been cracked during weak hash check - Hardware management: Switched matching ADL device with OpenCL device by using PCI bus, device and function - Hardware management: Switched matching NvAPI device with OpenCL device by using PCI bus, device and function diff --git a/src/opencl.c b/src/opencl.c index e903bcdd4..f32127988 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -377,7 +377,9 @@ int ocl_init (hashcat_ctx_t *hashcat_ctx) #elif defined(__APPLE__) ocl->lib = hc_dlopen ("/System/Library/Frameworks/OpenCL.framework/OpenCL", RTLD_NOW); #elif defined (__CYGWIN__) - ocl->lib = hc_dlopen ("cygOpenCL-1.dll", RTLD_NOW); + ocl->lib = hc_dlopen ("opencl.dll", RTLD_NOW); + + if (ocl->lib == NULL) ocl->lib = hc_dlopen ("cygOpenCL-1.dll", RTLD_NOW); #else ocl->lib = hc_dlopen ("libOpenCL.so", RTLD_NOW);