Sync with trunk r63174.
[reactos.git] / dll / win32 / inetmib1 / main.c
index 59d7389..9bb2eb3 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "config.h"
+#define WIN32_NO_STATUS
+
+#include <config.h>
 #include <assert.h>
 #include <stdarg.h>
 #include <stdlib.h>
-#include <limits.h>
+//#include <limits.h>
 
 #define NONAMELESSUNION
 
-#include "windef.h"
-#include "winbase.h"
-#include "snmp.h"
-#include "iphlpapi.h"
-#include "wine/debug.h"
+#include <windef.h>
+#include <winbase.h>
+#include <snmp.h>
+#include <iphlpapi.h>
+#include <wine/debug.h>
 
 WINE_DEFAULT_DEBUG_CHANNEL(inetmib1);
 
@@ -1454,10 +1456,9 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
             DisableThreadLibraryCalls(hinstDLL);
             break;
         case DLL_PROCESS_DETACH:
+            if (lpvReserved) break;
             cleanup();
             break;
-        default:
-            break;
     }
 
     return TRUE;