Workaround missing UrlEscape
authorJan Kotas <jkotas@microsoft.com>
Thu, 25 Feb 2016 07:01:24 +0000 (23:01 -0800)
committerJan Kotas <jkotas@microsoft.com>
Thu, 25 Feb 2016 07:01:24 +0000 (23:01 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/0870772cad98e2606136cf4a9d66874a1c613722

src/coreclr/src/vm/assemblyname.cpp

index 9ba5781..5513f1c 100644 (file)
@@ -176,6 +176,10 @@ FCIMPL1(Object*, AssemblyNameNative::EscapeCodeBase, StringObject* filenameUNSAF
     STRINGREF filename  = (STRINGREF) filenameUNSAFE;
     HELPER_METHOD_FRAME_BEGIN_RET_1(filename);
 
+#ifdef FEATURE_PAL
+    // UNIXTODO: UrlEscape not implemented
+    COMPlusThrow(kPlatformNotSupportedException);
+#else
     LPWSTR pCodeBase = NULL;
     DWORD  dwCodeBase = 0;
     CQuickBytes qb;
@@ -207,6 +211,7 @@ FCIMPL1(Object*, AssemblyNameNative::EscapeCodeBase, StringObject* filenameUNSAF
         else
             COMPlusThrowHR(hr);
     }
+#endif
 
     HELPER_METHOD_FRAME_END();
     return OBJECTREFToObject(rv);