diff options
author | Jay Krell <jaykrell@microsoft.com> | 2019-08-29 21:44:13 +0300 |
---|---|---|
committer | Larry Ewing <lewing@microsoft.com> | 2019-09-04 20:31:13 +0300 |
commit | da2471d0010eff53a63a3a6b852bb4000ce89408 (patch) | |
tree | e3704d03cdfd956a67bfe8c495044dcb4897b3e6 | |
parent | 74f1312cd395dcb37d1123a5be6ea493c52a3053 (diff) |
Test invalid module.
-rw-r--r-- | mono/eglib/test/module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mono/eglib/test/module.c b/mono/eglib/test/module.c index 5f2d6723b6f..94b8340b0e7 100644 --- a/mono/eglib/test/module.c +++ b/mono/eglib/test/module.c @@ -72,9 +72,9 @@ test_module_get_module_filename (void) #if _WIN32 const HMODULE mods [ ] = {NULL, LoadLibraryW (L"msvcrt.dll"), (HMODULE)(gssize)-1 }; - for (int i = 0; i < 2; ++i) { + for (int i = 0; i < G_N_ELEMENTS (mods); ++i) { + const HMODULE mod = mods [i]; for (int j = 0; j <= 2; ++j) { - const HMODULE mod = mods [i]; wchar_t* str = { 0 }; guint32 length = { 0 }; wchar_t buf2 [999] = { 0 }; |