From 447be262f8ccc25ddf2973d520a76da5287ad567 Mon Sep 17 00:00:00 2001 From: Moshe Katz Date: Thu, 27 Feb 2014 18:44:46 -0500 Subject: [PATCH] A better way to find string length --- Cmder.exe | Bin 32256 -> 32256 bytes launcher/src/CmderLauncher.cpp | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Cmder.exe b/Cmder.exe index 664bafca78369ce55f6958c25c7221f4c9051401..4bb4df18c642232c9206fb22e24ee6950f154b8a 100644 GIT binary patch delta 1766 zcmY*Zdr%Wc7~hQ$Lc&ACLjsDB1Oc)2j=Nj}A$R8^)}cirVkl}6wb~SI6@|{I2wJ2g z4FPd$?b~9h(<#=f88MEGqKwu@=xE!~wtuK?tvxK`R4Y~`ntq3ru{*Q(eY?Nk_t@X= z+@=8D6u{f=EAo3=A132Q5%TSl30?6GX)y5*!<82@w}Y`Fd)81yvUfNzOI`jQj^ zNJhXP24wIOd;zQ>8N)F&^kh^qLH-rzdD{uvJbwQ5cp}mkUc)6jwO6@ud`uD9O z)75mi4K_>UT4bYo98Mq~s57E!qTw7BD&NqdYsm$*4i}S~>M1yeBx>yVDk;~bV1{hg z#NcPh4vh)+&uenV9u9!OGmIGZ z(j@O-v=if9q-e~olr~UZIz9?6$fkmKf~q52v3fXm+!wMS(n(UT)hWlML4nz%PWuAh zLHybZXu=%B;Ok^XOcp*zcE(%`v%yvNz}2sc)#Vg}AFNhMMPTb~3#UWc($Z=b^pFcX zrLOQ0)Gb+M_a*tMZtgci{feJBo%5Ra7&r)o?zNmXeXGq4Zg7S z!yuaYa(vdiGJZgT&ypp&S8x|Or(2I-CicVwb>G|sO$(a(&fI=tyN9h0th?B#@=S|x z=Wk)oNR9VkBR>FM9e6&UMMQn|aJQZURiFE5vILZcBjh5PTqTp8!{oB3$ZzL<3XcW? zCXWQ@<$zgoz(fcbY2iAM!er>K86XWnkQJJlA|e~9 zG$h#{=tUF(iRJMas>{|tZ2wzdFp5J}WK15Llm5RRAQug5aTT!}v+#4I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!i= z7Rd%vYWVL-%0uSFl+`6a+IzR1GhHaGOA{6gs|367q0lSn#Q-ru6vP~Ho!Bg%5`Pih zVz7Cxd69XAx!PP~-eu-8GBbuUmS?WcyqP(eIXlal6`F0zo}b;4-IYDV(rUSA`PTA- z<&I^{GHIbCUnx|IlH#RgDNW*}4Cy(kP%4#HO6#Sql3m&(HA-*SNr$Co>6rAf)GGBz z-$^5qj~p#0%V{zr7s{n_xx7-|DDRXT;#7WpR1j z%iKC{H}@WQf*a(9IX!RSb9fuSoZrEJ#b4oX@`L1$F1FO@n`r&NDRO&Q diff --git a/launcher/src/CmderLauncher.cpp b/launcher/src/CmderLauncher.cpp index c155330..42d3d22 100644 --- a/launcher/src/CmderLauncher.cpp +++ b/launcher/src/CmderLauncher.cpp @@ -184,7 +184,7 @@ void RegisterShellMenu(std::wstring opt, wchar_t* keyBaseName) FAIL_ON_ERROR(RegSetValue(cmderKey, L"", REG_SZ, L"Cmder Here", NULL)); FAIL_ON_ERROR(RegSetValueEx(cmderKey, L"NoWorkingDirectory", 0, REG_SZ, (BYTE *)L"", 2)); - FAIL_ON_ERROR(RegSetValueEx(cmderKey, L"Icon", 0, REG_SZ, (BYTE *)icoPath, sizeof icoPath)); + FAIL_ON_ERROR(RegSetValueEx(cmderKey, L"Icon", 0, REG_SZ, (BYTE *)icoPath, wcslen(icoPath) * sizeof(wchar_t))); HKEY command; FAIL_ON_ERROR(