Module: wine Branch: master Commit: c3d28bae6d1438b82dc45425fbf6677625cc3378 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c3d28bae6d1438b82dc45425fb...
Author: Austin English austinenglish@gmail.com Date: Wed Jan 12 15:29:55 2011 -0800
winecfg: Fix a compiler warning on PowerPC.
---
programs/winecfg/driveui.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/programs/winecfg/driveui.c b/programs/winecfg/driveui.c index 58adb98..ead74b6 100644 --- a/programs/winecfg/driveui.c +++ b/programs/winecfg/driveui.c @@ -307,6 +307,7 @@ static void on_add_click(HWND dialog) char new = 'C'; /* we skip A and B, they are historically floppy drives */ ULONG mask = ~drive_available_mask(0); /* the mask is now which drives aren't available */ int i, c; + INT_PTR ret;
while (mask & (1 << (new - 'A'))) { @@ -319,9 +320,10 @@ static void on_add_click(HWND dialog) }
- new = DialogBoxParam(0, MAKEINTRESOURCE(IDD_DRIVECHOOSE), dialog, drivechoose_dlgproc, new); + ret = DialogBoxParam(0, MAKEINTRESOURCE(IDD_DRIVECHOOSE), dialog, drivechoose_dlgproc, new);
- if( new == -1) return; + if( ret == -1) return; + new = ret;
WINE_TRACE("selected drive letter %c\n", new);