mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 1430645 - Fix win64 compilation of mozsearch-plugin. r=emilio
MozReview-Commit-ID: 6xrnnZeYmFy --HG-- extra : rebase_source : dd2e92b7179ac35baf5c39ecfb70952a21b87141
This commit is contained in:
parent
c033a8d02c
commit
805ae43226
@ -12,6 +12,7 @@
|
||||
#include <direct.h>
|
||||
#include <io.h>
|
||||
#include <windows.h>
|
||||
#include "StringOperations.h"
|
||||
#else
|
||||
#include <sys/file.h>
|
||||
#include <sys/time.h>
|
||||
@ -50,7 +51,7 @@ void ensurePath(std::string Path) {
|
||||
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
AutoLockFile::AutoLockFile(const std::string &Filename) {
|
||||
std::string Hash = Hash(filename);
|
||||
std::string Hash = hash(Filename);
|
||||
std::string MutexName = std::string("Local\\searchfox-") + Hash;
|
||||
std::wstring WideMutexName;
|
||||
WideMutexName.assign(MutexName.begin(), MutexName.end());
|
||||
@ -85,7 +86,7 @@ bool AutoLockFile::truncateFile(size_t Length) {
|
||||
}
|
||||
|
||||
std::string getAbsolutePath(const std::string &Filename) {
|
||||
char full[_MAX_PATH];
|
||||
char Full[_MAX_PATH];
|
||||
if (!_fullpath(Full, Filename.c_str(), _MAX_PATH)) {
|
||||
return std::string("");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user