src/osd/winui/winui.c
| r7829 | r7830 | |
| 4079 | 4079 | { |
| 4080 | 4080 | int i; |
| 4081 | 4081 | LPTREEFOLDER folder; |
| 4082 | | char* t_szFile; |
| 4082 | char* utf8_szFile; |
| 4083 | 4083 | BOOL res; |
| 4084 | 4084 | |
| 4085 | 4085 | switch (id) |
| r7829 | r7830 | |
| 4589 | 4589 | |
| 4590 | 4590 | if (GetOpenFileName(&OpenFileName)) |
| 4591 | 4591 | { |
| 4592 | | t_szFile = utf8_from_tstring(szFile); |
| 4593 | | if( !t_szFile ) |
| 4592 | utf8_szFile = utf8_from_tstring(szFile); |
| 4593 | if( !utf8_szFile ) |
| 4594 | 4594 | return FALSE; |
| 4595 | | ResetBackground(t_szFile); |
| 4595 | ResetBackground(utf8_szFile); |
| 4596 | 4596 | LoadBackgroundBitmap(); |
| 4597 | 4597 | InvalidateRect(hMain, NULL, TRUE); |
| 4598 | 4598 | global_free(t_bgdir); |
| 4599 | | global_free(t_szFile); |
| 4599 | global_free(utf8_szFile); |
| 4600 | 4600 | return TRUE; |
| 4601 | 4601 | } |
| 4602 | 4602 | global_free(t_bgdir); |