[WIN32K]
[reactos.git] / reactos / win32ss / user / ntuser / kbdlayout.c
index be7e16f..5d3c633 100644 (file)
@@ -475,7 +475,10 @@ NtUserGetKeyboardLayoutList(
     UserEnterShared();
 
     if (!gspklBaseLayout)
+    {
+        UserLeave();
         return 0;
+    }
     pKl = gspklBaseLayout;
 
     if (nBuff == 0)