Skip to content

Commit

Permalink
Bug 655498 - Remove WinCE code from profile/* ; r=bsmedberg
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Morley committed May 17, 2011
1 parent a1e1dcb commit 475e28b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions profile/dirserviceprovider/src/nsProfileLock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit 475e28b

Please sign in to comment.