DllCompat icon indicating copy to clipboard operation
DllCompat copied to clipboard

GetFinalPathNameByHandleW crashes with error messages when trying to run Firefox 61

Open Svyatpro opened this issue 7 years ago • 4 comments

This is very unusual use, but I forward some functions inside One-Core-API's kernel32 to kernel3x.dll. When forwarding GetFinalPathNameByHandleW to kernel3x.dll I get two error messages when loading Firefox 61 on Windows Server 2003 SP2 RUS. First I get "Yay!" and the second one "Filesize=0..."

image image

Svyatpro avatar Oct 03 '18 01:10 Svyatpro

I don't really know how you can reproduce it, I can share some OCAPI's dlls with all forwards.

Svyatpro avatar Oct 03 '18 01:10 Svyatpro

yeah they are "important" debug messages... the "yay" is because of the method that it expects to receive the path... and the second is because our implementation require the file to be allowed to be mapped, so we can get a name... so i added the debug to see if there's any case where we need to improve this function... (basically a total extra complex rewrite :P)

Em ter, 2 de out de 2018 às 22:43, Svyatpro [email protected] escreveu:

I don't really know how you can reproduce it, I can share some OCAPI's dlls with all forwards.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MyTDT-Mysoft/DllCompat/issues/7#issuecomment-426485434, or mute the thread https://github.com/notifications/unsubscribe-auth/AQFsEICb0NUmY4xDe46Xt3Zsi-rIv9TDks5uhBY7gaJpZM4XFJg2 .

MyTDT-Mysoft avatar Oct 03 '18 02:10 MyTDT-Mysoft

Perhaps forward to OutputDebugString instead of MessageBox :p

pachuco avatar Oct 03 '18 14:10 pachuco

The function remains the same, but I've replaced the debug portion for less intrusiveness. Yay!

pachuco avatar Dec 31 '19 20:12 pachuco