From a720424899c916ef32f1c3e5430d582a100104c1 Mon Sep 17 00:00:00 2001 From: Jay Krell Date: Tue, 3 Sep 2019 11:27:00 -0700 Subject: [PATCH] Remove unnecessary cast. Commit migrated from https://github.com/mono/mono/commit/a7357e8177a95b7b01c92e30747e823d71a8aeda --- src/mono/mono/eglib/gmodule-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/mono/eglib/gmodule-win32.c b/src/mono/mono/eglib/gmodule-win32.c index 5556641..02d82d9 100644 --- a/src/mono/mono/eglib/gmodule-win32.c +++ b/src/mono/mono/eglib/gmodule-win32.c @@ -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; -- 2.7.4