--- a/fusioninventory-win32-service	2011-06-14 21:10:14.000000000 +0200
+++ b/fusioninventory-win32-service	2011-06-22 11:29:08.000000000 +0200
@@ -78,7 +78,7 @@
     # Check for any outstanding commands. Pass in a non zero value
     # and it resets the Last Message to SERVICE_CONTROL_NONE.
     if (SERVICE_CONTROL_NONE != (my $Message = 
-            Win32::Daemon::LastControlMessage(1))) {
+            Win32::Daemon::QueryLastMessage(1))) {
         if (SERVICE_CONTROL_INTERROGATE == $Message) {
             # Got here if the Service Control Manager is requesting
             # the current state of the service. This can happen for
