Commit f2ce614d authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

reg/tests: Test use of registry views when importing keys and values.

parent 0f958ec3
......@@ -50,8 +50,7 @@ BOOL compare_export_(const char *file, unsigned line, const char *filename,
todo_wine_if (todo & TODO_REG_COMPARE)
lok(!lstrcmpW(fbuf, wstr), "export data does not match expected data\n");
ret = DeleteFileA(filename);
lok(ret, "DeleteFile failed: %u\n", GetLastError());
ret = delete_file(filename);
exit:
HeapFree(GetProcessHeap(), 0, fbuf);
......
......@@ -93,6 +93,9 @@ extern const char *escaped_null_test;
/* import.c */
BOOL is_elevated_process(void);
#define delete_file(f) delete_file_(__FILE__,__LINE__,f)
BOOL delete_file_(const char *file, unsigned line, const char *fname);
#define test_import_str(c,r) import_reg(__FILE__,__LINE__,c,FALSE,r)
#define test_import_wstr(c,r) import_reg(__FILE__,__LINE__,c,TRUE,r)
BOOL import_reg(const char *file, unsigned line, const char *contents, BOOL unicode, DWORD *rc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment