Add MoveFileExW mock to system.h/.c

Add mock implementation for MoveFileExW Windows API function following
the existing pattern in the codebase. The mock forwards calls to the
real Windows API, allowing for future interception in the simulation
framework if needed.
This commit is contained in:
Claude
2025-11-17 21:30:24 +00:00
parent fbcfd80f6d
commit 047203a745
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -1648,6 +1648,12 @@ BOOL mock_FindClose(HANDLE hFindFile)
return TRUE;
}
BOOL mock_MoveFileExW(WCHAR *lpExistingFileName, WCHAR *lpNewFileName, DWORD dwFlags)
{
// Forward to real MoveFileExW, last error is set by the real call
return MoveFileExW(lpExistingFileName, lpNewFileName, dwFlags);
}
#else
int mock_clock_gettime(clockid_t clockid, struct timespec *tp)