[vbox-dev] Compiling with latest WDK/Visual studio

Ribhi Kamal ribhi at usdevforce.com
Tue Nov 21 15:48:21 GMT 2023


As far as I can tell, I'm able to compile using the latest WDDK/SDK/Visual
Studio. The only change that I had to make is the one below. I'm still
testing with this change (compiled on windows x64, installed on windows 10
x64 and running ubuntu 23.10.1 VM). Still have to test win 11 and 32bit
hosts.

Would you please review this fix below? This fixes
a VERR_LDRPE_LOAD_CONFIG_SIZE error with text: "Grown load config (304 to
320 bytes) includes non-zero bytes: a8 85 1b 80 01 00 00 00 00 00 00 00 00
00 00 00"

Thanks!

Index: ldrPE.cpp
===================================================================
--- ldrPE.cpp (revision 102056)
+++ ldrPE.cpp (working copy)
@@ -4801,7 +4801,7 @@
                                 ? sizeof(IMAGE_LOAD_CONFIG_DIRECTORY32_V1)
                                 : sizeof(IMAGE_LOAD_CONFIG_DIRECTORY64_V2)
/*No V1*/;
         const size_t cbNewHack  = cbExpectV5; /* Playing safe here since
there might've been revisions between V5 and V6 we don't know about . */
-        const size_t cbMaxKnown = cbExpectV12;
+        const size_t cbMaxKnown = cbExpectV13;

         bool fNewerStructureHack = false;
         if (   Dir.Size != cbExpectV13


-- 
Ribhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20231121/23f9707c/attachment.html>


More information about the vbox-dev mailing list