• Ivan Donchevskii's avatar
    Utils: workaround for saving file opened by another application · 29b79144
    Ivan Donchevskii authored
    ...fixes file saving on Windows in specific circumstances.
    
    File deletion on Windows is quite tricky. If you simply
    remove the file opened by another app that shares it for
    deletion the file might become semi-removed. It looks
    like it still exists but it is in fact inaccessible for
    any operations until the other app frees the handle.
    
    To solve that case there is a ReplaceFile API call
    which carefully deals with that case.
    
    [Backstory] Oswald Buddenhagen insists that this fix is
    rather a workaround and we should solve file access
    problem in llvm.
    For that purpose we have QTCREATORBUG-19404 and upstream
    https://bugs.llvm.org/show_bug.cgi?id=35558
    
    Task-number: QTCREATORBUG-15449
    Change-Id: If37d484231b79d8e33822c795232dc31243c88c0
    Reviewed-by: 's avatarDavid Schulz <david.schulz@qt.io>
    29b79144
Name
Last commit
Last update
bin Loading commit data...
dist Loading commit data...
doc Loading commit data...
qbs Loading commit data...
scripts Loading commit data...
share Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
HACKING Loading commit data...
LICENSE.GPL3-EXCEPT Loading commit data...
README.md Loading commit data...
docs.pri Loading commit data...
qtcreator.pri Loading commit data...
qtcreator.pro Loading commit data...
qtcreator.qbs Loading commit data...
qtcreatordata.pri Loading commit data...