diff --git a/Source/Platform.h b/Source/Platform.h index 1434e116..0c98a3bb 100644 --- a/Source/Platform.h +++ b/Source/Platform.h @@ -368,7 +368,7 @@ typedef WORD LANGID; # define VS_VERSION_INFO 1 #endif #ifndef VS_FFI_SIGNATURE -# define VS_FFI_SIGNATURE 0xFEEFO4BD +# define VS_FFI_SIGNATURE 0xFEEF04BD #endif // message box diff --git a/Source/script.cpp b/Source/script.cpp index 53acf166..3c9f218c 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -4421,7 +4421,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) if (ver) { - if (versize > sizeof(WORD) * 3) + if ((size_t) versize > sizeof(WORD) * 3) { // get VS_FIXEDFILEINFO from VS_VERSIONINFO WCHAR *szKey = (WCHAR *)(ver + sizeof(WORD) * 3);