Commit fc1e5859 authored by paroga@webkit.org's avatar paroga@webkit.org

2011-03-26 Patrick Gansterer <paroga@webkit.org>

        Unreviewed WinCE build fix for r82000.

        * platform/wince/FileSystemWinCE.cpp:
        (WebCore::openFile): Added missing function.

git-svn-id: svn://svn.chromium.org/blink/trunk@82025 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 70416777
2011-03-26 Patrick Gansterer <paroga@webkit.org>
Unreviewed WinCE build fix for r82000.
* platform/wince/FileSystemWinCE.cpp:
(WebCore::openFile): Added missing function.
2011-03-25 Kevin Ollivier <kevino@theolliviers.com>
[wx] Build fix, don't use the new FPD implementation yet, until we can merge ours with it.
......@@ -234,6 +234,25 @@ CString openTemporaryFile(const char*, PlatformFileHandle& handle)
return proposedPath.latin1();
}
PlatformFileHandle openFile(const String& path, FileOpenMode mode)
{
DWORD desiredAccess = 0;
DWORD creationDisposition = 0;
switch (mode) {
case OpenForRead:
desiredAccess = GENERIC_READ;
creationDisposition = OPEN_EXISTING;
case OpenForWrite:
desiredAccess = GENERIC_WRITE;
creationDisposition = CREATE_ALWAYS;
default:
ASSERT_NOT_REACHED();
}
String destination = path;
return CreateFile(destination.charactersWithNullTermination(), desiredAccess, 0, 0, creationDisposition, FILE_ATTRIBUTE_NORMAL, 0);
}
void closeFile(PlatformFileHandle& handle)
{
if (isHandleValid(handle)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment