Ticket #7506: 001-unique_path_windows.patch
File 001-unique_path_windows.patch, 790 bytes (added by , 9 years ago) |
---|
-
libs/filesystem/src/unique_path.cpp
76 76 HCRYPTPROV handle; 77 77 int errval = 0; 78 78 79 if (!::CryptAcquireContextW(&handle, 0, 0, PROV_RSA_FULL, 0))79 if (!::CryptAcquireContextW(&handle, 0, 0, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) 80 80 { 81 81 errval = ::GetLastError(); 82 82 if (errval == NTE_BAD_KEYSET) 83 83 { 84 if (!::CryptAcquireContextW(&handle, 0, 0, PROV_RSA_FULL, CRYPT_ NEWKEYSET))84 if (!::CryptAcquireContextW(&handle, 0, 0, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT | CRYPT_SILENT | CRYPT_NEWKEYSET)) 85 85 { 86 86 errval = ::GetLastError(); 87 87 }