mdbx-windows: use _wcsnicmp() instead of wcsnicmp() to avoid dependency from CRT.

13 of 17 for https://github.com/leo-yuriev/libmdbx/issues/43

Change-Id: I880433ddaf364a7e2b5de104ccf8689b93754ec5
This commit is contained in:
Leonid Yuriev 2018-10-14 11:25:26 +03:00
parent e229dbe9dc
commit cad9cea33b

View File

@ -870,8 +870,8 @@ int mdbx_check4nonlocal(mdbx_filehandle_t handle, int flags) {
VOLUME_NAME_DOS)) { VOLUME_NAME_DOS)) {
UINT DriveType = GetDriveTypeW(PathBuffer); UINT DriveType = GetDriveTypeW(PathBuffer);
if (DriveType == DRIVE_NO_ROOT_DIR && if (DriveType == DRIVE_NO_ROOT_DIR &&
wcsncmp(PathBuffer, L"\\\\?\\", 4) == 0 && _wcsnicmp(PathBuffer, L"\\\\?\\", 4) == 0 &&
wcsncmp(PathBuffer + 5, L":\\", 2) == 0) { _wcsnicmp(PathBuffer + 5, L":\\", 2) == 0) {
PathBuffer[7] = 0; PathBuffer[7] = 0;
DriveType = GetDriveTypeW(PathBuffer + 4); DriveType = GetDriveTypeW(PathBuffer + 4);
} }