Francois Gouget : krnl386.exe16: Avoid hardcoding the Unicode string literal lengths.

Alexandre Julliard julliard at winehq.org
Fri Dec 16 11:22:55 CST 2011


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Dec 16 13:07:35 2011 +0100

krnl386.exe16: Avoid hardcoding the Unicode string literal lengths.

---

 dlls/krnl386.exe16/int21.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/krnl386.exe16/int21.c b/dlls/krnl386.exe16/int21.c
index f8e235a..241ecc1 100644
--- a/dlls/krnl386.exe16/int21.c
+++ b/dlls/krnl386.exe16/int21.c
@@ -599,7 +599,7 @@ static WORD INT21_GetHeapSelector( CONTEXT *context )
  */
 static BOOL INT21_FillDrivePB( BYTE drive )
 {
-    WCHAR       drivespec[3] = {'A', ':', 0};
+    WCHAR       drivespec[] = {'A', ':', 0};
     INT21_HEAP *heap = INT21_GetHeapPointer();
     INT21_DPB  *dpb;
     UINT        drivetype;




More information about the wine-cvs mailing list