From c607ea3cf381063d9958a1339942e0129746e555 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sun, 27 Jan 2013 00:00:16 -0500 Subject: [PATCH] Fix PageInfo component --- Sources/Tools/MaxComponent/plMiscComponents.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Tools/MaxComponent/plMiscComponents.cpp b/Sources/Tools/MaxComponent/plMiscComponents.cpp index 395ae812..574fecfb 100644 --- a/Sources/Tools/MaxComponent/plMiscComponents.cpp +++ b/Sources/Tools/MaxComponent/plMiscComponents.cpp @@ -272,7 +272,7 @@ protected: int idx = ComboBox_AddString( hAgeCombo, ageName.c_str() ); // Store the pathas the item data for later (so don't free it yet!) - ComboBox_SetItemData( hAgeCombo, idx, (LPARAM)ageFiles[i].AsString().c_str() ); + ComboBox_SetItemData( hAgeCombo, idx, (LPARAM)hsStrcpy(ageFiles[i].AsString().c_str()) ); if (ageName == curAge) ComboBox_SetCurSel( hAgeCombo, idx );