[ADVAPI32_WINETEST] Sync with Wine Staging 3.3. CORE-14434
[reactos.git] / modules / rostests / winetests / advapi32 / registry.c
index 4b99099..716edac 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "precomp.h"
-
 #include <assert.h>
-#include <winperf.h>
+#include <stdarg.h>
+#include <stdio.h>
+#include "wine/test.h"
+#include "windef.h"
+#include "winbase.h"
+#include "winternl.h"
+#include "winreg.h"
+#include "winperf.h"
+#include "winsvc.h"
+#include "winerror.h"
+#include "aclapi.h"
 
 #define IS_HKCR(hk) ((UINT_PTR)hk > 0 && ((UINT_PTR)hk & 3) == 2)
 
@@ -2506,6 +2514,12 @@ static void test_redirection(void)
         }
     }
 
+    if (limited_user)
+    {
+        skip("not enough privileges to modify HKLM\n");
+        return;
+    }
+
     err = RegCreateKeyExA( HKEY_LOCAL_MACHINE, "Software\\Wine", 0, NULL, 0,
                            KEY_WOW64_64KEY | KEY_ALL_ACCESS, NULL, &root64, NULL );
     ok( err == ERROR_SUCCESS, "RegCreateKeyExA failed: %u\n", err );