diff --git a/dlls/oleaut32/regsvr.c b/dlls/oleaut32/regsvr.c
index a410f4a0f69e30e666696004aeb21b1cc14aecda..3c61151c8bfb708fceb94bd3e04044692dd7a0ce 100644
--- a/dlls/oleaut32/regsvr.c
+++ b/dlls/oleaut32/regsvr.c
@@ -18,6 +18,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#include <string.h>
+
 #include "windef.h"
 #include "winbase.h"
 #include "winuser.h"
@@ -28,8 +30,6 @@
 #include "olectl.h"
 #include "oleauto.h"
 
-#include "string.h"
-
 #include "wine/debug.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(ole);
diff --git a/dlls/shell32/regsvr.c b/dlls/shell32/regsvr.c
index 7c55ee05978e6f75414e77d8f05b7d39e87342c7..a023a06eea754b1a35146e4dbe01357031b4dd39 100644
--- a/dlls/shell32/regsvr.c
+++ b/dlls/shell32/regsvr.c
@@ -18,6 +18,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#include <string.h>
+
 #include "windef.h"
 #include "winbase.h"
 #include "winuser.h"
@@ -26,8 +28,6 @@
 
 #include "ole2.h"
 
-#include "string.h"
-
 #include "wine/debug.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(ole);