mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
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:
parent
e229dbe9dc
commit
cad9cea33b
@ -870,8 +870,8 @@ int mdbx_check4nonlocal(mdbx_filehandle_t handle, int flags) {
|
||||
VOLUME_NAME_DOS)) {
|
||||
UINT DriveType = GetDriveTypeW(PathBuffer);
|
||||
if (DriveType == DRIVE_NO_ROOT_DIR &&
|
||||
wcsncmp(PathBuffer, L"\\\\?\\", 4) == 0 &&
|
||||
wcsncmp(PathBuffer + 5, L":\\", 2) == 0) {
|
||||
_wcsnicmp(PathBuffer, L"\\\\?\\", 4) == 0 &&
|
||||
_wcsnicmp(PathBuffer + 5, L":\\", 2) == 0) {
|
||||
PathBuffer[7] = 0;
|
||||
DriveType = GetDriveTypeW(PathBuffer + 4);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user