File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Servers/IIS/AspNetCoreModuleV2/CommonLib Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -543,7 +543,7 @@ BOOL HostFxrResolver::IsX64(const WCHAR* dotnetPath)
543543 }
544544
545545 // Read the DOS header
546- IMAGE_DOS_HEADER dosHeader{} ;
546+ IMAGE_DOS_HEADER dosHeader;
547547 file.read (reinterpret_cast <char *>(&dosHeader), sizeof (dosHeader));
548548 if (dosHeader.e_magic != IMAGE_DOS_SIGNATURE) // 'MZ'
549549 {
@@ -555,7 +555,7 @@ BOOL HostFxrResolver::IsX64(const WCHAR* dotnetPath)
555555 file.seekg (dosHeader.e_lfanew , std::ios::beg);
556556
557557 // Read the PE header
558- DWORD peSignature{} ;
558+ DWORD peSignature;
559559 file.read (reinterpret_cast <char *>(&peSignature), sizeof (peSignature));
560560 if (peSignature != IMAGE_NT_SIGNATURE) // 'PE\0\0'
561561 {
@@ -564,11 +564,11 @@ BOOL HostFxrResolver::IsX64(const WCHAR* dotnetPath)
564564 }
565565
566566 // Read the file header
567- IMAGE_FILE_HEADER fileHeader{} ;
567+ IMAGE_FILE_HEADER fileHeader;
568568 file.read (reinterpret_cast <char *>(&fileHeader), sizeof (fileHeader));
569569
570570 // Read the optional header magic field
571- WORD magic{} ;
571+ WORD magic;
572572 file.read (reinterpret_cast <char *>(&magic), sizeof (magic));
573573
574574 // Determine the architecture based on the magic value
You can’t perform that action at this time.
0 commit comments