Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Krell <jaykrell@microsoft.com>2019-09-03 21:27:00 +0300
committerLarry Ewing <lewing@microsoft.com>2019-09-04 20:31:13 +0300
commita7357e8177a95b7b01c92e30747e823d71a8aeda (patch)
treef92298d9f9aa094c72aad48757afb6e263f682be
parent595b66c0ebe530054895f2c74bcd4212e77536b9 (diff)
Remove unnecessary cast.
-rw-r--r--mono/eglib/gmodule-win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mono/eglib/gmodule-win32.c b/mono/eglib/gmodule-win32.c
index 55566417369..02d82d9d8d0 100644
--- a/mono/eglib/gmodule-win32.c
+++ b/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;