Skip to content

Commit

Permalink
fix initialization order
Browse files Browse the repository at this point in the history
  • Loading branch information
grechnik committed Feb 21, 2017
1 parent 43dfeb9 commit ef262bc
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions dragndrop/msvs2015/common.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
<ExceptionHandling>false</ExceptionHandling>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<OmitFramePointers>true</OmitFramePointers>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down
1 change: 1 addition & 0 deletions dragndrop/msvs2015/dll.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
<ExceptionHandling>false</ExceptionHandling>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<OmitFramePointers>true</OmitFramePointers>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down
1 change: 1 addition & 0 deletions dragndrop/msvs2015/holder.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<WholeProgramOptimization>true</WholeProgramOptimization>
<OmitFramePointers>true</OmitFramePointers>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>TARGET_ARCH_x86;_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down
1 change: 1 addition & 0 deletions dragndrop/msvs2015/hook.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
<ExceptionHandling>false</ExceptionHandling>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<OmitFramePointers>true</OmitFramePointers>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>TARGET_ARCH_x86;_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down
1 change: 1 addition & 0 deletions dragndrop/msvs2015/plugin.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<AssemblerOutput>All</AssemblerOutput>
<WholeProgramOptimization>false</WholeProgramOptimization>
<OmitFramePointers>true</OmitFramePointers>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>TARGET_ARCH_x86;_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down
2 changes: 1 addition & 1 deletion dragndrop/plugin/src/winthrd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ WinThread::WinThread(): _handle(0), _leftButtonEvent(0), _rightButtonEvent(0),
HolderApi* holderApi = HolderApi::instance();
if (holderApi)
{
holderApi->setHolder(static_cast<IHolder*>(this)); // this CreateEvent-s, so must come first
_leftButtonEvent = OpenEvent(SYNCHRONIZE, FALSE, HOLDER_LEFT_EVENT);
_rightButtonEvent = OpenEvent(SYNCHRONIZE, FALSE, HOLDER_RIGHT_EVENT);
holderApi->setHolder(static_cast<IHolder*>(this));
}
}

Expand Down

0 comments on commit ef262bc

Please sign in to comment.