WebKit Win fix after r8629: use ...A Win API functions explicitly.
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8631 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
ddb782dcb8
commit
a9a51c054d
@ -744,11 +744,11 @@ FILE* OS::OpenTemporaryFile() {
|
|||||||
// tmpfile_s tries to use the root dir, don't use it.
|
// tmpfile_s tries to use the root dir, don't use it.
|
||||||
char tempPathBuffer[MAX_PATH];
|
char tempPathBuffer[MAX_PATH];
|
||||||
DWORD path_result = 0;
|
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;
|
if (path_result > MAX_PATH || path_result == 0) return NULL;
|
||||||
UINT name_result = 0;
|
UINT name_result = 0;
|
||||||
char tempNameBuffer[MAX_PATH];
|
char tempNameBuffer[MAX_PATH];
|
||||||
name_result = GetTempFileName(tempPathBuffer, "", 0, tempNameBuffer);
|
name_result = GetTempFileNameA(tempPathBuffer, "", 0, tempNameBuffer);
|
||||||
if (name_result == 0) return NULL;
|
if (name_result == 0) return NULL;
|
||||||
FILE* result = FOpen(tempNameBuffer, "w+"); // Same mode as tmpfile uses.
|
FILE* result = FOpen(tempNameBuffer, "w+"); // Same mode as tmpfile uses.
|
||||||
if (result != NULL) {
|
if (result != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user