summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Quotes/src')
-rw-r--r--plugins/Quotes/src/QuoteChart.cpp2
-rw-r--r--plugins/Quotes/src/SettingsDlg.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Quotes/src/QuoteChart.cpp b/plugins/Quotes/src/QuoteChart.cpp
index 17e304f4dc..a60d5d0a7e 100644
--- a/plugins/Quotes/src/QuoteChart.cpp
+++ b/plugins/Quotes/src/QuoteChart.cpp
@@ -129,7 +129,7 @@ namespace
case WM_DESTROY:
{
TChart* pChart = get_chart_ptr(hWnd);
- ::SetWindowLongPtr(hWnd,GWLP_USERDATA,NULL);
+ ::SetWindowLongPtr(hWnd,GWLP_USERDATA,0);
delete pChart;
}
break;
diff --git a/plugins/Quotes/src/SettingsDlg.cpp b/plugins/Quotes/src/SettingsDlg.cpp
index e100401ece..48f190f1c4 100644
--- a/plugins/Quotes/src/SettingsDlg.cpp
+++ b/plugins/Quotes/src/SettingsDlg.cpp
@@ -566,7 +566,7 @@ namespace
update_popup_controls(hWnd);
}
- ::SetWindowLongPtr(hWnd,GWLP_USERDATA,reinterpret_cast<LONG>(pAdvSettings));
+ ::SetWindowLongPtr(hWnd,GWLP_USERDATA,reinterpret_cast<LONG_PTR>(pAdvSettings));
}
return TRUE;
case WM_COMMAND: