projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0bc3ef
)
Remove unnecessary cast.
author
Jay Krell
<jaykrell@microsoft.com>
Tue, 3 Sep 2019 18:27:00 +0000
(11:27 -0700)
committer
Larry Ewing
<lewing@microsoft.com>
Wed, 4 Sep 2019 17:31:13 +0000
(12:31 -0500)
Commit migrated from https://github.com/mono/mono/commit/
a7357e8177a95b7b01c92e30747e823d71a8aeda
src/mono/mono/eglib/gmodule-win32.c
patch
|
blob
|
history
diff --git
a/src/mono/mono/eglib/gmodule-win32.c
b/src/mono/mono/eglib/gmodule-win32.c
index
5556641
..
02d82d9
100644
(file)
--- 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;