src/osd/winui/properties.c
| r8253 | r8254 | |
| 484 | 484 | { |
| 485 | 485 | PROPSHEETHEADER pshead; |
| 486 | 486 | PROPSHEETPAGE *pspage; |
| 487 | | TCHAR* t_description = 0; |
| 487 | TCHAR* t_description = NULL; |
| 488 | 488 | OPTIONS_TYPE default_type = opt_type; |
| 489 | 489 | |
| 490 | 490 | if (highlight_brush == NULL) |
| r8253 | r8254 | |
| 547 | 547 | if (!pspage) |
| 548 | 548 | return; |
| 549 | 549 | |
| 550 | | |
| 551 | 550 | // Get the description use as the dialog caption. |
| 552 | 551 | switch( opt_type ) |
| 553 | 552 | { |
| r8253 | r8254 | |
| 563 | 562 | case OPTIONS_GLOBAL: |
| 564 | 563 | t_description = tstring_from_utf8("Default Settings"); |
| 565 | 564 | break; |
| 566 | | default: |
| 567 | | return; |
| 568 | 565 | } |
| 569 | 566 | // If we have no descrption, return. |
| 570 | | if( !t_description ) |
| 567 | if( !t_description ) { |
| 568 | free(pspage); |
| 571 | 569 | return; |
| 570 | } |
| 572 | 571 | |
| 573 | 572 | /* Fill in the property sheet header */ |
| 574 | 573 | pshead.pszCaption = t_description; |