Re: Mismatch Between win32syscalls.h and Windows System Call Numbers
Alexandre Julliard <[email protected]> Thu, 05 Jun 2025 23:02:43 +0200
| Newsgroups | gmane.comp.emulators.wine.devel |
|---|---|
| Message-ID | <875xh952bw.fsf@wine> |
Paul Gofman <[email protected]> writes: >> DVDFab depends on the syscalls matching the Windows 10 numbering when >> running on Windows 10. I think that's a good reason why Wine's syscall >> numbers should be changed to match those of the default Windows >> version in winecfg. See >> https://bugs.winehq.org/show_bug.cgi?id=58043#c4 >> >> -Alex > Probably worth noting that the syscall numbers can't just be arbitrary > assigned to what Windows has on the current version. There are few > known cases when game detect those numbers not based on hardcoding per > Windows version and not based on parsing syscall thunk, but based on > the fact syscalls are sequentually ordered (starting from 0) on > Windows when sorted by Nt function address in ntdll. There is now a > test for that in commit ad6c662c468812549a636fcc0f66ec3f824c2675. So > the solution probably has to have the syscall functions set matching > Windows for the default Wine version in some way. I have some patches for this that will go in with today's commit round. -- Alexandre Julliard [email protected]