On 11/30/21 1:26 PM, Jacek Caban jacek@codeweavers.com wrote:
Also preserve last error.
FWIW I think I had similar problems with my nulldrv patches, and the last error reset comes from CreateMutex. If you plan on using ntdll functions directly (or if you don't, using them would), it should not be necessary to save and restore last error.