Win32: Simplify Change Nickname code and slightly change InputBox_GetString to take a const default value. We don't modify it.

This commit is contained in:
The Dax committed 2013-08-23 06:37:47 -04:00
1 parent 09dc4ac09b
commit e97def9c66
6 files changed
+6 -15

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ bool InputBox_GetString(HINSTANCE hInst, HWND hParent, TCHAR *title, TCHAR *defa
return false;
}
bool InputBox_GetString(HINSTANCE hInst, HWND hParent, TCHAR *title, TCHAR *defaultvalue, TCHAR *outvalue, size_t outlength)
bool InputBox_GetString(HINSTANCE hInst, HWND hParent, TCHAR *title, const TCHAR *defaultvalue, TCHAR *outvalue, size_t outlength)
{
const char *defaultTitle = "Input value";
defaultSelected = true;