Andrew Talbot : comdlg32: Cast-qual warning fix.
Module: wine Branch: master Commit: 10c1faa79e552ad99ec126a00224beb1243290c3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=10c1faa79e552ad99ec126a002... Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Sun Oct 22 13:32:03 2006 +0100 comdlg32: Cast-qual warning fix. --- dlls/comdlg32/filedlg31.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/comdlg32/filedlg31.c b/dlls/comdlg32/filedlg31.c index 5f48fa9..e835901 100644 --- a/dlls/comdlg32/filedlg31.c +++ b/dlls/comdlg32/filedlg31.c @@ -724,12 +724,14 @@ void FD31_MapOfnStructA(const LPOPENFILE ofnW->lpstrTitle = usBuffer.Buffer; } else { WCHAR buf[16]; + LPWSTR title_tmp; int len; LoadStringW(COMDLG32_hInstance, open ? IDS_OPEN_FILE : IDS_SAVE_AS, buf, sizeof(buf)/sizeof(WCHAR)); len = lstrlenW(buf)+1; - ofnW->lpstrTitle = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR)); - memcpy((void*)ofnW->lpstrTitle, buf, len*sizeof(WCHAR)); + title_tmp = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR)); + memcpy(title_tmp, buf, len * sizeof(WCHAR)); + ofnW->lpstrTitle = title_tmp; } ofnW->Flags = ofnA->Flags; ofnW->nFileOffset = ofnA->nFileOffset;
participants (1)
-
Alexandre Julliard