]> git.sur5r.net Git - bacula/bacula/commitdiff
bugfix (used static functions instead of dynamic ones)
authorThorsten Engel <thorsten.engel@matrix-computer.com>
Fri, 5 Aug 2005 16:03:22 +0000 (16:03 +0000)
committerThorsten Engel <thorsten.engel@matrix-computer.com>
Fri, 5 Aug 2005 16:03:22 +0000 (16:03 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2296 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/findlib/attribs.c

index cc5e20f000a2bc059eb97846f60b96465b4e6a8a..512a45220fa022fbb95e806ea8dbadf0b646e179 100755 (executable)
@@ -607,14 +607,14 @@ static bool set_win32_attributes(JCR *jcr, ATTR *attr, BFILE *ofd)
          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 {
-         if (!SetFileAttributes(win32_ofile, atts.dwFileAttributes & SET_ATTRS)) {
+         if (!p_SetFileAttributesA(win32_ofile, atts.dwFileAttributes & SET_ATTRS)) {
             win_error(jcr, "SetFileAttributesA:", win32_ofile);
          }
       }