diff options
author | danmosemsft <danmose@microsoft.com> | 2017-02-10 17:12:53 -0800 |
---|---|---|
committer | danmosemsft <danmose@microsoft.com> | 2017-02-10 21:36:06 -0800 |
commit | 54891e0650e69f08832f75a40dc102efc6115d38 (patch) | |
tree | 0e032a0b337767801f696cbaeacded267c694f32 /src/vm/securitypolicy.cpp | |
parent | 396f7d43b3c0f3ca7034a6d1d9cd7d6914778a1e (diff) | |
download | coreclr-54891e0650e69f08832f75a40dc102efc6115d38.tar.gz coreclr-54891e0650e69f08832f75a40dc102efc6115d38.tar.bz2 coreclr-54891e0650e69f08832f75a40dc102efc6115d38.zip |
Remove always defined FEATURE_CORECLR
Diffstat (limited to 'src/vm/securitypolicy.cpp')
-rw-r--r-- | src/vm/securitypolicy.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/vm/securitypolicy.cpp b/src/vm/securitypolicy.cpp index fe1da90b8d..03910a2311 100644 --- a/src/vm/securitypolicy.cpp +++ b/src/vm/securitypolicy.cpp @@ -790,34 +790,6 @@ void QCALLTYPE SecurityPolicy::GetDeviceName(LPCWSTR wszDriveLetter, QCall::Stri { QCALL_CONTRACT; -#if !defined(FEATURE_CORECLR) - BEGIN_QCALL; - - WCHAR networkName[MAX_LONGPATH]; - DWORD networkNameSize = MAX_LONGPATH; - ZeroMemory( networkName, sizeof( networkName ) ); - - UINT driveType = WszGetDriveType( wszDriveLetter ); - if (driveType == DRIVE_REMOVABLE || - driveType == DRIVE_FIXED || - driveType == DRIVE_CDROM || - driveType == DRIVE_RAMDISK) - { - retDeviceName.Set( wszDriveLetter ); - goto lExit; - } - - if (WszWNetGetConnection(wszDriveLetter, networkName, &networkNameSize) != NO_ERROR) - { - goto lExit; - } - - retDeviceName.Set( networkName ); - -lExit: ; - - END_QCALL; -#endif // !FEATURE_CORECLR } #ifdef FEATURE_CAS_POLICY |