Skip to content

Commit

Permalink
Code Tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Ford authored and Andy Ford committed Oct 13, 2019
1 parent e3f43fb commit 6b10a9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions HiddenWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ LRESULT CALLBACK HiddenWindow(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
switch (msg) {
case WM_CREATE : {
bridge = reinterpret_cast<AfvBridge*>(reinterpret_cast<CREATESTRUCT*>(lParam)->lpCreateParams);
bridge->OnTimer(1);
return TRUE;
}
case WM_COPYDATA: {
COPYDATASTRUCT * data = reinterpret_cast<COPYDATASTRUCT *>(lParam);

if (data->dwData == 666 && bridge != nullptr) {
if (data != nullptr && data->dwData == 666 && data->lpData != nullptr && bridge != nullptr) {
bridge->AddMessageToQueue(reinterpret_cast<const char*>(data->lpData));
}
return TRUE;
}
}

Expand Down
2 changes: 1 addition & 1 deletion constants.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#define PLUGIN_TITLE "Audio for Vatsim EuroScope Bridge"
#define PLUGIN_VERSION "1.2.2"
#define PLUGIN_VERSION "1.2.3"
#define PLUGIN_AUTHOR "Audio for Vatsim Team"
#define PLUGIN_COPYRIGHT "Virtual Air Traffic Simulation Network"

0 comments on commit 6b10a9d

Please sign in to comment.