From: Jay Krell Date: Tue, 3 Sep 2019 18:27:00 +0000 (-0700) Subject: Remove unnecessary cast. X-Git-Tag: submit/tizen/20210909.063632~10331^2~5^2~573 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a720424899c916ef32f1c3e5430d582a100104c1;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Remove unnecessary cast. Commit migrated from https://github.com/mono/mono/commit/a7357e8177a95b7b01c92e30747e823d71a8aeda --- 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;