Skip to content

Commit

Permalink
Merge pull request #1192 from bagong/patch-3
Browse files Browse the repository at this point in the history
Update win32_api.hpp
  • Loading branch information
danstowell committed Sep 9, 2014
2 parents 77fce13 + 0948b57 commit 0b1f5db
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions external_libraries/boost/boost/interprocess/detail/win32_api.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ typedef OVERLAPPED interprocess_overlapped;

typedef FILETIME interprocess_filetime;

typedef WIN32_FIND_DATA win32_find_data;
typedef WIN32_FIND_DATAA win32_find_data;

typedef SECURITY_ATTRIBUTES interprocess_security_attributes;

Expand Down Expand Up @@ -685,8 +685,8 @@ typedef FARPROC farproc_t;

struct interprocess_semaphore_basic_information
{
unsigned int count; // current semaphore count
unsigned int limit; // max semaphore count
unsigned int count; // current semaphore count
unsigned int limit; // max semaphore count
};

struct interprocess_section_basic_information
Expand Down Expand Up @@ -1522,7 +1522,7 @@ struct function_address_holder
}

public:
static void *get(const unsigned int id)
static farproc_t get(const unsigned int id)
{
BOOST_ASSERT(id < (unsigned int)NumFunction);
for(unsigned i = 0; FunctionStates[id] < 2; ++i){
Expand Down Expand Up @@ -1900,7 +1900,7 @@ inline bool unlink_file(const char *filename)
, const_cast<wchar_t*>(empty_str)
};
object_attributes_t object_attr;
initialize_object_attributes(&object_attr, &ustring, 0, fh, 0);
initialize_object_attributes(&object_attr, &ustring, 0, fh, 0);
void* fh2 = 0;
io_status_block_t io;
pNtOpenFile( &fh2, delete_flag, &object_attr, &io
Expand Down Expand Up @@ -2263,10 +2263,10 @@ inline bool get_last_bootup_time(std::string &stamp)

inline bool is_directory(const char *path)
{
unsigned long attrib = GetFileAttributesA(path);
unsigned long attrib = GetFileAttributesA(path);

return (attrib != invalid_file_attributes &&
(attrib & file_attribute_directory));
return (attrib != invalid_file_attributes &&
(attrib & file_attribute_directory));
}

inline bool get_file_mapping_size(void *file_mapping_hnd, __int64 &size)
Expand Down

0 comments on commit 0b1f5db

Please sign in to comment.