Revision: 8631
Author: [email protected]
Date: Wed Jul 13 04:58:46 2011
Log: WebKit Win fix after r8629: use ...A Win API functions explicitly.
http://code.google.com/p/v8/source/detail?r=8631
Modified:
/branches/bleeding_edge/src/platform-win32.cc
=======================================
--- /branches/bleeding_edge/src/platform-win32.cc Wed Jul 13 04:31:22 2011
+++ /branches/bleeding_edge/src/platform-win32.cc Wed Jul 13 04:58:46 2011
@@ -744,11 +744,11 @@
// tmpfile_s tries to use the root dir, don't use it.
char tempPathBuffer[MAX_PATH];
DWORD path_result = 0;
- path_result = GetTempPath(MAX_PATH, tempPathBuffer);
+ path_result = GetTempPathA(MAX_PATH, tempPathBuffer);
if (path_result > MAX_PATH || path_result == 0) return NULL;
UINT name_result = 0;
char tempNameBuffer[MAX_PATH];
- name_result = GetTempFileName(tempPathBuffer, "", 0, tempNameBuffer);
+ name_result = GetTempFileNameA(tempPathBuffer, "", 0, tempNameBuffer);
if (name_result == 0) return NULL;
FILE* result = FOpen(tempNameBuffer, "w+"); // Same mode as tmpfile
uses.
if (result != NULL) {
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev