diff options
author | Jay Krell <jaykrell@microsoft.com> | 2019-09-03 21:27:00 +0300 |
---|---|---|
committer | Larry Ewing <lewing@microsoft.com> | 2019-09-04 20:31:13 +0300 |
commit | a7357e8177a95b7b01c92e30747e823d71a8aeda (patch) | |
tree | f92298d9f9aa094c72aad48757afb6e263f682be | |
parent | 595b66c0ebe530054895f2c74bcd4212e77536b9 (diff) |
Remove unnecessary cast.
-rw-r--r-- | mono/eglib/gmodule-win32.c | 2 |
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; |