From 86fe0a113cd8953cb1ce916aa9cd4870d685d7d8 Mon Sep 17 00:00:00 2001 From: Jay Krell Date: Thu, 29 Aug 2019 11:29:11 -0700 Subject: [PATCH] Remove cast. Commit migrated from https://github.com/mono/mono/commit/2db0c8c2d423094423137becff64d7e85996f1c2 --- 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 ed666bd..3d442c4 100644 --- a/src/mono/mono/eglib/gmodule-win32.c +++ b/src/mono/mono/eglib/gmodule-win32.c @@ -328,7 +328,7 @@ mono_get_current_directory (gunichar2** pstr, guint32* plength) break; // Call in loop, not just twice, in case another thread is changing it. // Result is transient in currentness and validity (can get deleted or become a file). - length = GetCurrentDirectoryW (capacity, (PWSTR)str); + length = GetCurrentDirectoryW (capacity, str); success = length && length < (capacity - 1); if (success) break; -- 2.7.4