]> git.sesse.net Git - vlc/commitdiff
Win32 one-instance: fix mismatch in ABI on win64
authorRafaël Carré <funman@videolan.org>
Wed, 7 Mar 2012 22:38:07 +0000 (17:38 -0500)
committerRafaël Carré <funman@videolan.org>
Wed, 7 Mar 2012 22:39:26 +0000 (17:39 -0500)
86f2f7329b1b4 changed string length storage from int to size_t but did
not update the receiving code.

Close #6084

src/win32/specific.c

index 8a20808b33b2dc5bd32984078edbc9d542f1d308..3350cff0050eab0d2a324df0a488c1e8b393af41 100644 (file)
@@ -291,8 +291,8 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
             ppsz_argv = (char **)malloc( i_argc * sizeof(char *) );
             for( i_opt = 0; i_opt < i_argc; i_opt++ )
             {
-                ppsz_argv[i_opt] = p_data->data + i_data + sizeof(int);
-                i_data += sizeof(int) + *((int *)(p_data->data + i_data));
+                ppsz_argv[i_opt] = p_data->data + i_data + sizeof(size_t);
+                i_data += sizeof(size_t) + *((size_t *)(p_data->data + i_data));
             }
 
             for( i_opt = 0; i_opt < i_argc; i_opt++ )