Title: [149793] trunk/Source/WebCore
- Revision
- 149793
- Author
- [email protected]
- Date
- 2013-05-08 23:38:18 -0700 (Wed, 08 May 2013)
Log Message
[Windows] The function seekFile() is not implemented.
https://bugs.webkit.org/show_bug.cgi?id=115246
Patch by [email protected] <[email protected]> on 2013-05-08
Reviewed by Brent Fulgham.
Implemented seekFile() function for Windows.
* platform/win/FileSystemWin.cpp:
(WebCore::seekFile):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (149792 => 149793)
--- trunk/Source/WebCore/ChangeLog 2013-05-09 06:31:44 UTC (rev 149792)
+++ trunk/Source/WebCore/ChangeLog 2013-05-09 06:38:18 UTC (rev 149793)
@@ -1,3 +1,15 @@
+2013-05-08 [email protected] <[email protected]>
+
+ [Windows] The function seekFile() is not implemented.
+ https://bugs.webkit.org/show_bug.cgi?id=115246
+
+ Reviewed by Brent Fulgham.
+
+ Implemented seekFile() function for Windows.
+
+ * platform/win/FileSystemWin.cpp:
+ (WebCore::seekFile):
+
2013-05-08 Seokju Kwon <[email protected]>
Web Inspector: Fix a typo in Settings.js
Modified: trunk/Source/WebCore/platform/win/FileSystemWin.cpp (149792 => 149793)
--- trunk/Source/WebCore/platform/win/FileSystemWin.cpp 2013-05-09 06:31:44 UTC (rev 149792)
+++ trunk/Source/WebCore/platform/win/FileSystemWin.cpp 2013-05-09 06:38:18 UTC (rev 149793)
@@ -319,6 +319,26 @@
}
}
+long long seekFile(PlatformFileHandle handle, long long offset, FileSeekOrigin origin)
+{
+ DWORD moveMethod = FILE_BEGIN;
+
+ if (origin == SeekFromCurrent)
+ moveMethod = FILE_CURRENT;
+ else if (origin == SeekFromEnd)
+ moveMethod = FILE_END;
+
+ LARGE_INTEGER largeOffset;
+ largeOffset.QuadPart = offset;
+
+ LARGE_INTEGER newOffset;
+ newOffset.QuadPart = 0;
+
+ SetFilePointerEx(handle, largeOffset, &newOffset, moveMethod);
+
+ return newOffset.QuadPart;
+}
+
int writeToFile(PlatformFileHandle handle, const char* data, int length)
{
if (!isHandleValid(handle))
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes