Andrew Talbot : atl: Cast-qual warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Oct 18 07:38:56 CDT 2006


Module: wine
Branch: master
Commit: 90b1d7abe62140934a5c521f201eb72704026253
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=90b1d7abe62140934a5c521f201eb72704026253

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Tue Oct 17 22:55:43 2006 +0100

atl: Cast-qual warnings fix.

---

 dlls/atl/registrar.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/atl/registrar.c b/dlls/atl/registrar.c
index 0a62aad..11d266f 100644
--- a/dlls/atl/registrar.c
+++ b/dlls/atl/registrar.c
@@ -286,13 +286,15 @@ static HRESULT do_process_key(LPCOLESTR 
                     }
                     break;
                 case 'd': {
+                    WCHAR *end;
                     DWORD dw;
                     if(*iter == '0' && iter[1] == 'x') {
                         iter += 2;
-                        dw = strtolW(iter, (WCHAR**)&iter, 16);
+                        dw = strtolW(iter, &end, 16);
                     }else {
-                        dw = strtolW(iter, (WCHAR**)&iter, 10);
+                        dw = strtolW(iter, &end, 10);
                     }
+                    iter = end;
                     lres = RegSetValueExW(hkey, name.len ? name.str :  NULL, 0, REG_DWORD,
                             (PBYTE)&dw, sizeof(dw));
                     if(lres != ERROR_SUCCESS) {




More information about the wine-cvs mailing list