RegFlushKey: wrong error code.

diff --git a/misc/registry.c b/misc/registry.c
index a27cda6..b738b71 100644
--- a/misc/registry.c
+++ b/misc/registry.c
@@ -3203,7 +3203,7 @@
 
     lpkey = lookup_hkey( hkey );
     if (!lpkey)
-        return ERROR_INVALID_HANDLE;
+        return ERROR_BADKEY;
 
     ERR(reg, "What is the correct filename?\n");