Unimplemented KERNEL32.dll function FindFirstFileNameW

Questions about Wine on Linux
Locked
turtleizzy
Newbie
Newbie
Posts: 2
Joined: Thu Sep 19, 2024 1:06 am

Unimplemented KERNEL32.dll function FindFirstFileNameW

Post by turtleizzy »

Wechat (3.9.11.25) on wine (9.17) halts randomly, and the culprit boils down to an unimplemented function call in Kernel32.dll.

Code: Select all

wine: Call from 00006FFFFFC6DC18 to unimplemented function KERNEL32.dll.FindFirstFileNameW, aborting
I am not familiar with Windows API but this function looks frequently used judging by its name.
Has anyone had this issue before?
User avatar
=CO= Windler
Level 2
Level 2
Posts: 34
Joined: Wed Apr 07, 2021 1:27 am

Re: Unimplemented KERNEL32.dll function FindFirstFileNameW

Post by =CO= Windler »

In Micrografx Picture Publisher 7 & 8 the file requester crashes only after entering another directory. This may be related because it happens when it should display folder content.
sjn4048
Newbie
Newbie
Posts: 2
Joined: Wed Sep 25, 2024 6:08 am

Re: Unimplemented KERNEL32.dll function FindFirstFileNameW

Post by sjn4048 »

I am also experiencing the same issue described in this thread. Here are the details of my situation:

- Wine version: 9.0
- Operating System: Ubuntu 24.04
- Application: WeChat 3.9.8.25
- Error message: Unimplemented KERNEL32.dll function FindFirstFileNameW

I've searched on the Internet, and the only related thread is a Chinese post (http://www.qinmigpt.com/post/1149.html) where the author mentioned that he implemented this function himself, but did not provide the source code. It is still a bit too difficult for me to handle this situation, so any help from the forum would be appreciated. Thank you!

Best regards,
qwertymnb
Level 5
Level 5
Posts: 272
Joined: Sun Jan 17, 2016 4:36 pm

Re: Unimplemented KERNEL32.dll function FindFirstFileNameW

Post by qwertymnb »

Hi,

If you know how to compile wine, could you try if patch here fixes the bug for you?
https://bugs.winehq.org/attachment.cgi? ... format=raw
turtleizzy
Newbie
Newbie
Posts: 2
Joined: Thu Sep 19, 2024 1:06 am

Re: Unimplemented KERNEL32.dll function FindFirstFileNameW

Post by turtleizzy »

qwertymnb wrote: Thu Sep 26, 2024 4:16 pm Hi,

If you know how to compile wine, could you try if patch here fixes the bug for you?
https://bugs.winehq.org/attachment.cgi? ... format=raw
I have tested this patch over wine-9.18 src and Wechat 3.9.12.15 (with the help of #2).
The bug seems to be resolved.
I can see proper FIXME debug logs when FindFirstFileNameW was called and the program seems to function normally.
Thank you so much for all your help!

Code: Select all

0368:fixme:file:FindFirstFileNameW (L"C:\\users\\abc\\Documents\\WeChat Files\\abcd\\FileStorage\\MsgAttach\\....", 0, 0000700FC47DEA50, 0000700FC47DEB00): stub!
Last edited by turtleizzy on Mon Sep 30, 2024 3:53 am, edited 1 time in total.
qwertymnb
Level 5
Level 5
Posts: 272
Joined: Sun Jan 17, 2016 4:36 pm

Re: Unimplemented KERNEL32.dll function FindFirstFileNameW

Post by qwertymnb »

Hi, thanks for testing. A similar patch is upstreamed and will be included in next upcoming release (wine-9.19) so you can try that out once it' released
sjn4048
Newbie
Newbie
Posts: 2
Joined: Wed Sep 25, 2024 6:08 am

Re: Unimplemented KERNEL32.dll function FindFirstFileNameW

Post by sjn4048 »

qwertymnb wrote: Thu Oct 03, 2024 4:43 pm Hi, thanks for testing. A similar patch is upstreamed and will be included in next upcoming release (wine-9.19) so you can try that out once it' released
That will be nice, as my attempt to compile Wine failed and I failed to find why. Looking forward to update to 9.19.
turtleizzy
Newbie
Newbie
Posts: 2
Joined: Thu Sep 19, 2024 1:06 am

Re: Unimplemented KERNEL32.dll function FindFirstFileNameW

Post by turtleizzy »

qwertymnb wrote: Thu Oct 03, 2024 4:43 pm Hi, thanks for testing. A similar patch is upstreamed and will be included in next upcoming release (wine-9.19) so you can try that out once it' released
I can confirm this issue has been resolved since wine-9.19. Wechat now works normally under wine-9.19 and 9.20.

Also for anyone concerned, Wechat has released its native Linux version (finally) so it might not be necessary to use the Windows version anymore.
Locked