Fix typo in variable name (#54989)
authorAndrii Kurdiumov <kant2002@gmail.com>
Thu, 1 Jul 2021 12:07:21 +0000 (18:07 +0600)
committerGitHub <noreply@github.com>
Thu, 1 Jul 2021 12:07:21 +0000 (05:07 -0700)
src/libraries/System.Drawing.Common/src/System/Drawing/DrawingComWrappers.cs
src/tests/Interop/COM/ComWrappers/API/Program.cs
src/tests/Interop/COM/ComWrappers/GlobalInstance/GlobalInstance.cs

index 7895381..236ae1b 100644 (file)
@@ -27,9 +27,9 @@ namespace System.Drawing
 
         private static ComInterfaceEntry* InitializeComInterfaceEntry()
         {
-            GetIUnknownImpl(out IntPtr fpQueryInteface, out IntPtr fpAddRef, out IntPtr fpRelease);
+            GetIUnknownImpl(out IntPtr fpQueryInterface, out IntPtr fpAddRef, out IntPtr fpRelease);
 
-            IntPtr iStreamVtbl = IStreamVtbl.Create(fpQueryInteface, fpAddRef, fpRelease);
+            IntPtr iStreamVtbl = IStreamVtbl.Create(fpQueryInterface, fpAddRef, fpRelease);
 
             ComInterfaceEntry* wrapperEntry = (ComInterfaceEntry*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(DrawingComWrappers), sizeof(ComInterfaceEntry));
             wrapperEntry->IID = IID_IStream;
@@ -68,10 +68,10 @@ namespace System.Drawing
 
         internal static class IStreamVtbl
         {
-            public static IntPtr Create(IntPtr fpQueryInteface, IntPtr fpAddRef, IntPtr fpRelease)
+            public static IntPtr Create(IntPtr fpQueryInterface, IntPtr fpAddRef, IntPtr fpRelease)
             {
                 IntPtr* vtblRaw = (IntPtr*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(IStreamVtbl), IntPtr.Size * 14);
-                vtblRaw[0] = fpQueryInteface;
+                vtblRaw[0] = fpQueryInterface;
                 vtblRaw[1] = fpAddRef;
                 vtblRaw[2] = fpRelease;
                 vtblRaw[3] = (IntPtr)(delegate* unmanaged<IntPtr, byte*, uint, uint*, int>)&Read;
index 1a779a7..52da8f8 100644 (file)
@@ -18,10 +18,10 @@ namespace ComWrappersTests
         {
             protected unsafe override ComInterfaceEntry* ComputeVtables(object obj, CreateComInterfaceFlags flags, out int count)
             {
-                IntPtr fpQueryInteface = default;
+                IntPtr fpQueryInterface = default;
                 IntPtr fpAddRef = default;
                 IntPtr fpRelease = default;
-                ComWrappers.GetIUnknownImpl(out fpQueryInteface, out fpAddRef, out fpRelease);
+                ComWrappers.GetIUnknownImpl(out fpQueryInterface, out fpAddRef, out fpRelease);
 
                 ComInterfaceEntry* entryRaw = null;
                 count = 0;
@@ -31,7 +31,7 @@ namespace ComWrappersTests
                     {
                         IUnknownImpl = new IUnknownVtbl()
                         {
-                            QueryInterface = fpQueryInteface,
+                            QueryInterface = fpQueryInterface,
                             AddRef = fpAddRef,
                             Release = fpRelease
                         },
@@ -70,9 +70,9 @@ namespace ComWrappersTests
             {
                 Console.WriteLine($"Running {nameof(ValidateIUnknownImpls)}...");
 
-                ComWrappers.GetIUnknownImpl(out IntPtr fpQueryInteface, out IntPtr fpAddRef, out IntPtr fpRelease);
+                ComWrappers.GetIUnknownImpl(out IntPtr fpQueryInterface, out IntPtr fpAddRef, out IntPtr fpRelease);
 
-                Assert.AreNotEqual(fpQueryInteface, IntPtr.Zero);
+                Assert.AreNotEqual(fpQueryInterface, IntPtr.Zero);
                 Assert.AreNotEqual(fpAddRef, IntPtr.Zero);
                 Assert.AreNotEqual(fpRelease, IntPtr.Zero);
             }
@@ -198,7 +198,7 @@ namespace ComWrappersTests
 
         static void ValidateWrappersInstanceIsolation()
         {
-            Console.WriteLine($"Running {nameof(ValidateWrappersInstanceIsolation)}...");   
+            Console.WriteLine($"Running {nameof(ValidateWrappersInstanceIsolation)}...");
 
             var cw1 = new TestComWrappers();
             var cw2 = new TestComWrappers();
index 899c4f9..7a358a9 100644 (file)
@@ -116,14 +116,14 @@ namespace ComWrappersTests.GlobalInstance
                 }
                 else if (string.Equals(ManagedServerTypeName, obj.GetType().Name))
                 {
-                    IntPtr fpQueryInteface = default;
+                    IntPtr fpQueryInterface = default;
                     IntPtr fpAddRef = default;
                     IntPtr fpRelease = default;
-                    ComWrappers.GetIUnknownImpl(out fpQueryInteface, out fpAddRef, out fpRelease);
+                    ComWrappers.GetIUnknownImpl(out fpQueryInterface, out fpAddRef, out fpRelease);
 
                     var vtbl = new IUnknownVtbl()
                     {
-                        QueryInterface = fpQueryInteface,
+                        QueryInterface = fpQueryInterface,
                         AddRef = fpAddRef,
                         Release = fpRelease
                     };
@@ -176,14 +176,14 @@ namespace ComWrappersTests.GlobalInstance
 
             private unsafe ComInterfaceEntry* ComputeVtablesForTestObject(Test obj, out int count)
             {
-                IntPtr fpQueryInteface = default;
+                IntPtr fpQueryInterface = default;
                 IntPtr fpAddRef = default;
                 IntPtr fpRelease = default;
-                ComWrappers.GetIUnknownImpl(out fpQueryInteface, out fpAddRef, out fpRelease);
+                ComWrappers.GetIUnknownImpl(out fpQueryInterface, out fpAddRef, out fpRelease);
 
                 var iUnknownVtbl = new IUnknownVtbl()
                 {
-                    QueryInterface = fpQueryInteface,
+                    QueryInterface = fpQueryInterface,
                     AddRef = fpAddRef,
                     Release = fpRelease
                 };