[Bug 44954] Star Citizen fails to load dll

wine-bugs at winehq.org wine-bugs at winehq.org
Fri May 11 13:45:30 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=44954

--- Comment #13 from Matthew <matthew at digivation.net> ---
OK - I grabbed a fresh copy of wine from git (HEAD), applied the wine-staging
patches to it (HEAD as well), then applied your patch; the code was already
present, but I reapplied the patch. Verified dlls/ndtll/loader.c contained the
is_resource() function. Then ./configure --enable-win64; make -j9

Unfortunately, running ./wine64 <path to my exe> still results in a
failure...(In reply to Alistair Leslie-Hughes from comment #11)
> Hi Matthew
> 
> If you apply the staging patches, but change the function is_resource_dll to
> return !info.TransferAddress;
> 
> Does that fix the issue?

That did indeed resolve the issue - now the DLLs load and the executable
continues.

static BOOL is_resource_dll( HANDLE hfile )                                     
 {                                                                              
     SECTION_IMAGE_INFORMATION info;                                            
     SIZE_T ret;                                                                

     if(NtQuerySection(hfile, SectionImageInformation, &info, sizeof(info),
&ret) == STATUS_SUCCESS)                                                        
         return !info.ImageContainsCode;                                        

     return !info.ImageContainsCode;                                            
 }

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list