Remove unnecessary cast.
authorJay Krell <jaykrell@microsoft.com>
Tue, 3 Sep 2019 18:27:00 +0000 (11:27 -0700)
committerLarry Ewing <lewing@microsoft.com>
Wed, 4 Sep 2019 17:31:13 +0000 (12:31 -0500)
Commit migrated from https://github.com/mono/mono/commit/a7357e8177a95b7b01c92e30747e823d71a8aeda

src/mono/mono/eglib/gmodule-win32.c

index 5556641..02d82d9 100644 (file)
@@ -217,7 +217,7 @@ mono_get_module_filename (gpointer mod, gunichar2** pstr, guint32* plength)
                str = g_new (gunichar2, capacity);
                if (!str)
                        break;
-               length = GetModuleFileNameW ((HMODULE)mod, (PWSTR)str, capacity);
+               length = GetModuleFileNameW ((HMODULE)mod, str, capacity);
                success = length && length < (capacity - 1); // This function does not truncate, but - 1 anyway.
                if (success)
                        break;