Fix shell32 spec file to properly export LogoffWindowsDialog as the proper ordinal (54) so that explorer won't crash on shutdown when calling it. Implement the LogoffWindowsDialog stub.
Modified: trunk/reactos/lib/shell32/dialogs.c
Modified: trunk/reactos/lib/shell32/shell32.spec

Modified: trunk/reactos/lib/shell32/dialogs.c
--- trunk/reactos/lib/shell32/dialogs.c	2005-09-18 18:37:08 UTC (rev 17917)
+++ trunk/reactos/lib/shell32/dialogs.c	2005-09-18 18:46:15 UTC (rev 17918)
@@ -406,7 +406,16 @@
     return 0;
 }
 
+/*************************************************************************
+ * LogoffWindowsDialog				[SHELL32.54]
+ */
 
+int WINAPI LogoffWindowsDialog(DWORD uFlags)
+{
+    ERR("LogoffWindowsDialog is UNIMPLEMENTED\n");
+    return 0;
+}
+
 /*************************************************************************
  * RestartDialog				[SHELL32.59]
  */

Modified: trunk/reactos/lib/shell32/shell32.spec
--- trunk/reactos/lib/shell32/shell32.spec	2005-09-18 18:37:08 UTC (rev 17917)
+++ trunk/reactos/lib/shell32/shell32.spec	2005-09-18 18:46:15 UTC (rev 17918)
@@ -47,6 +47,7 @@
   51 stdcall -noname PathResolve(str long long) PathResolveAW
   52 stdcall -noname PathGetArgs(str) PathGetArgsAW
   53 stdcall DoEnvironmentSubst(long long) DoEnvironmentSubstAW
+  54 stdcall -noname LogoffWindowsDialog(ptr)
   55 stdcall -noname PathQuoteSpaces(ptr) PathQuoteSpacesAW
   56 stdcall -noname PathUnquoteSpaces(str) PathUnquoteSpacesAW
   57 stdcall -noname PathGetDriveNumber(str) PathGetDriveNumberAW