[PATCH 2/3] wine.inf: Start PlugPlay service on prefix initialization.

Rémi Bernon rbernon at codeweavers.com
Tue Jan 25 03:55:49 CST 2022


Device drivers may be installed and started on prefix initialization but
if PlugPlay is missing they won't be able to send plugplay notifications
until the prefix is restarted.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---

Note that this, and the previous patch, will not fix the notification
failure on prefix startup for already pluged devices, which often
translate to a few 0x6ba exceptions.

These exceptions are a race with service startup ordering, between the
device services and plugplay.exe service. That race should not be an
issue, as nothing will be waiting for notifications that early, although
it could maybe be nice to fix it too to get rid of these exceptions.

 loader/wine.inf.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/loader/wine.inf.in b/loader/wine.inf.in
index c0251934dfc..3af8dabca64 100644
--- a/loader/wine.inf.in
+++ b/loader/wine.inf.in
@@ -178,7 +178,7 @@ AddService=RpcSs,0,RpcSsService
 AddService=Spooler,0,SpoolerService
 AddService=StiSvc,0,StiService
 AddService=TermService,0,TerminalServices
-AddService=PlugPlay,0,PlugPlayService
+AddService=PlugPlay,0x800,PlugPlayService
 AddService=FontCache3.0.0.0,0,WPFFontCacheService
 AddService=LanmanServer,0,LanmanServerService
 AddService=FontCache,0,FontCacheService
@@ -197,7 +197,7 @@ AddService=RpcSs,0,RpcSsService
 AddService=Spooler,0,SpoolerService
 AddService=StiSvc,0,StiService
 AddService=TermService,0,TerminalServices
-AddService=PlugPlay,0,PlugPlayService
+AddService=PlugPlay,0x800,PlugPlayService
 AddService=FontCache3.0.0.0,0,WPFFontCacheService
 AddService=LanmanServer,0,LanmanServerService
 AddService=FontCache,0,FontCacheService
@@ -216,7 +216,7 @@ AddService=RpcSs,0,RpcSsService
 AddService=Spooler,0,SpoolerService
 AddService=StiSvc,0,StiService
 AddService=TermService,0,TerminalServices
-AddService=PlugPlay,0,PlugPlayService
+AddService=PlugPlay,0x800,PlugPlayService
 AddService=FontCache3.0.0.0,0,WPFFontCacheService
 AddService=LanmanServer,0,LanmanServerService
 AddService=FontCache,0,FontCacheService
@@ -235,7 +235,7 @@ AddService=RpcSs,0,RpcSsService
 AddService=Spooler,0,SpoolerService
 AddService=StiSvc,0,StiService
 AddService=TermService,0,TerminalServices
-AddService=PlugPlay,0,PlugPlayService
+AddService=PlugPlay,0x800,PlugPlayService
 AddService=FontCache3.0.0.0,0,WPFFontCacheService
 AddService=LanmanServer,0,LanmanServerService
 AddService=FontCache,0,FontCacheService
-- 
2.34.1




More information about the wine-devel mailing list