mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 655498 - Remove WinCE code from profile/* ; r=bsmedberg
This commit is contained in:
parent
d260544670
commit
c24361f216
@ -591,23 +591,13 @@ nsresult nsProfileLock::Lock(nsILocalFile* aProfileDir,
|
||||
rv = lockFile->GetPath(filePath);
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
#ifdef WINCE
|
||||
// WinCE doesn't have FILE_FLAG_DELETE_ON_CLOSE, so let's just try
|
||||
// to delete the file first before creating it. This will fail
|
||||
// if it's already open.
|
||||
DeleteFileW(filePath.get());
|
||||
#endif
|
||||
|
||||
mLockFileHandle = CreateFileW(filePath.get(),
|
||||
GENERIC_READ | GENERIC_WRITE,
|
||||
0, // no sharing - of course
|
||||
nsnull,
|
||||
OPEN_ALWAYS,
|
||||
#ifndef WINCE
|
||||
FILE_FLAG_DELETE_ON_CLOSE,
|
||||
#else
|
||||
FILE_ATTRIBUTE_NORMAL,
|
||||
#endif
|
||||
nsnull);
|
||||
if (mLockFileHandle == INVALID_HANDLE_VALUE) {
|
||||
// XXXbsmedberg: provide a profile-unlocker here!
|
||||
|
Loading…
Reference in New Issue
Block a user