浏览代码

Fix multichar warning in windows_utils

patwork 1 年之前
父节点
当前提交
909f28a534
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      platform/windows/windows_utils.cpp

+ 2 - 2
platform/windows/windows_utils.cpp

@@ -92,7 +92,7 @@ Error WindowsUtils::copy_and_rename_pdb(const String &p_dll_path) {
 			DWORD Offset;
 			DWORD Offset;
 		};
 		};
 
 
-		const DWORD nb10_magic = '01BN';
+		const DWORD nb10_magic = 0x3031424e; // "01BN" (little-endian)
 		struct CV_INFO_PDB20 {
 		struct CV_INFO_PDB20 {
 			CV_HEADER CvHeader; // CvHeader.Signature = "NB10"
 			CV_HEADER CvHeader; // CvHeader.Signature = "NB10"
 			DWORD Signature;
 			DWORD Signature;
@@ -100,7 +100,7 @@ Error WindowsUtils::copy_and_rename_pdb(const String &p_dll_path) {
 			BYTE PdbFileName[1];
 			BYTE PdbFileName[1];
 		};
 		};
 
 
-		const DWORD rsds_magic = 'SDSR';
+		const DWORD rsds_magic = 0x53445352; // "SDSR" (little-endian)
 		struct CV_INFO_PDB70 {
 		struct CV_INFO_PDB70 {
 			DWORD Signature; // "RSDS"
 			DWORD Signature; // "RSDS"
 			BYTE Guid[16];
 			BYTE Guid[16];