git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2296
91ce42f0-d328-0410-95d8-
f526ca767f89
POOLMEM* pwszBuf = get_pool_memory (PM_FNAME);
UTF8_2_wchar(&pwszBuf, win32_ofile);
POOLMEM* pwszBuf = get_pool_memory (PM_FNAME);
UTF8_2_wchar(&pwszBuf, win32_ofile);
- BOOL b=SetFileAttributesW((LPCWSTR)pwszBuf, atts.dwFileAttributes & SET_ATTRS);
+ BOOL b=p_SetFileAttributesW((LPCWSTR)pwszBuf, atts.dwFileAttributes & SET_ATTRS);
free_pool_memory(pwszBuf);
if (!b)
win_error(jcr, "SetFileAttributesW:", win32_ofile);
}
else {
free_pool_memory(pwszBuf);
if (!b)
win_error(jcr, "SetFileAttributesW:", win32_ofile);
}
else {
- if (!SetFileAttributes(win32_ofile, atts.dwFileAttributes & SET_ATTRS)) {
+ if (!p_SetFileAttributesA(win32_ofile, atts.dwFileAttributes & SET_ATTRS)) {
win_error(jcr, "SetFileAttributesA:", win32_ofile);
}
}
win_error(jcr, "SetFileAttributesA:", win32_ofile);
}
}