Skip to content

Commit 394fae8

Browse files
committed
Initialize variable (to make MSVC happy).
1 parent 1598331 commit 394fae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MemoryModule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ HMEMORYMODULE MemoryLoadLibraryEx(const void *data, size_t size,
635635
FARPROC MemoryGetProcAddress(HMEMORYMODULE module, LPCSTR name)
636636
{
637637
unsigned char *codeBase = ((PMEMORYMODULE)module)->codeBase;
638-
DWORD idx;
638+
DWORD idx = 0;
639639
PIMAGE_EXPORT_DIRECTORY exports;
640640
PIMAGE_DATA_DIRECTORY directory = GET_HEADER_DICTIONARY((PMEMORYMODULE)module, IMAGE_DIRECTORY_ENTRY_EXPORT);
641641
if (directory->Size == 0) {

0 commit comments

Comments
 (0)